We Recommend

CSS: The Definitive Guide CSS: The Definitive Guide
Provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, text wrapping (nowrap), lists and generated content, table layout, user interface, paged media, and more.


Posted By

bassdas on 07/29/08


Tagged

css ie navigation internet explorer ul li list-style 6


Versions (?)


Who likes this?

4 people have marked this snippet as a favorite

SpinZ
bassdas
basicmagic
eriksagen


LIst style based navigation makes newline space in IE6


Published in: CSS 


Internet Explorer (IE) 6 Bug

  1. <div id="subnavigation">
  2. <ul>
  3. <li><a href="/nav1/>nav1</a></li>
  4. <li><a href="/nav2/>nav2</a></li>
  5. <li><a href="/nav3/>nav3</a></li>
  6. </ul>
  7. </div>
  8.  
  9.  
  10. /* fixes the new line after the li line in ie6 */
  11. * html div#subnavigation ul li {
  12. height: 1px;
  13. }

Report this snippet 

You need to login to post a comment.