Page 1 of 1

jQuery Animate width by percentage?

Posted: Thu Oct 04, 2007 12:53 pm
by JAB Creations
This is intended to change the element with the content id to have a total width of 100% though it's not working. How is percentage intended to be defined in jQuery?

Code: Select all

 $('#content').animate({width: '100%'},1000)

Posted: Thu Oct 04, 2007 1:38 pm
by JAB Creations
Browsers inherit this automatically but jQuery requires you to set the relative container; lame, Resolved.