Initializr and IE8

Anyone else come across problems with the default menu?

I’ve just started playing with this as a starting point for a new site. Generally loving it, but got about half a day into tinkering before firing up IE8 on a Win xp box (error) and discovered everything is snafu. Not my tinkering, as the issue presents on their demo site.


The problem is that they are using last-child to remove the last margin n the nav but IE8 doesn’t understand last-child so you need to duplicate it with a class.

nav li:first-child a { margin-left: 0; }
nav li:last-child a { margin-right: 0; }
[B]nav li.last-child a { margin-right: 0; }

		<li><a href="#">nav ul li a</a></li>
		<li><a href="#">nav ul li a</a></li>
		<li class="last-child"><a href="#">nav ul li a</a></li>

Aha. Nice one, thanks Paul - they should have you on the team!

lol -true :slight_smile:

It seems that some people are forgetting about IE8 already and it will be nice when it’s of no concern any more.