Search code examples
jqueryeasyslider

jQuery EasySlider, no % as width?


I'm trying to use jQuery EasySlider to carousel, however, when I specify a number in percentage for the width of the div container, the container fails to deliver content.

Am I to assume that it is incapable of dealing with percentages?


Solution

  • Does the container div have floating children? If true, that's why the div doesn't show any content (floating elements are taken out of the document flow and thus out of the parent element, which in turn will collapse to 0 width when there are no no-floating children).