ReadingIE6: Width and lists (UL LI) – Not floating Permalink

A problem that targets Internet Explorer 6 is the floating lists (ul li) without a specific width set. 

For example, a menu can work properly if the UL LI is float:left; and without no width, but in Internet Explorer 6, a specific width must be set to render the UL LI correctly, and not as blocks.

As such, a trick is to float:left; the anchor (a) inside the list, too (ul li).

ul li { float:left; }  
ul li a { float:left; }  

No responses Comments RSS

Do you want to comment?


Looking for more? See all posts on the blog.