This has been giving me a headache, but the navigation list don't display as inline in IE browsers 6-8:

That's the site, and this link is a screencap of what it looks like in IE 6&7: 95

Terrible, right? The selector nav ul li a is floated to the left, and the width is auto, How do I make the nav to display inline in IE?

1 answer


IE8 and lower doesn't recognize the HTML5 <nav> element. You will need to use a script like Modernizr to make this work for older browsers or give the <nav> a class name and reference the class name in your CSS instead of the plain nav element.

Answered almost 7 years ago by Artistic Abode
  • +1 for Modernizr danwellman almost 7 years ago