jquery - fittext.js does not work and it drives me mad -


i'am intergrating fittext.js in website nothing. , can't find problem.

maybe else?

this code

css code  .nav-text { font-size: 24px; font-weight: bold; text-align: center; display: block; margin-top: 5px; padding-top: 0px; }  html code  <div class="nav small-4 large-2 columns padding_bottom_30"><a href="#"><img src="/img/wat-thumbnail.png" alt="wat"><br/>   <p class="nav-text">wat</p></a></div>  jquery code   <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>  <!--fit-text--> <script src="/js/jquery.fittext.js"></script> <script> jquery(".nav-text").fittext(); </script> 

here's link live working version.

thanks far!

try separate the image , p tag, , use class of p-tag in jquery selector. this:

<div> <p><a href="#"><img src="/img/wat-thumbnail.png" alt="wat"></a></p> <p class="nav-text"><a href="#">wat</a></p> </div> 

Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -