Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Nav Background Position Re: Nav Background Position

#71721

ok apparently its internet explorers inability to support the last-child pseudo class. so i tried using the class of that li. It still wont work in IE! I’m using wordpress so the li has two classes. so I think that is my issue. I’m not completely sure though.

It outputs the following HTML:
<li class="page_item page-item-11"><a title="Contact" href="http://www.mtrservices.com/contact/">Contact</a></li&gt;

so in my css I write:
ul.dropdown li:last-child, ul.dropdown li.page-item-11 {
background:url(../images/nav.png) no-repeat top right;
}

works fine in all the other browsers, not in IE. Any thoughts?

Thanks!