Home › Forums › CSS › Nav Background Position › Re: Nav Background Position
February 27, 2010 at 1:58 am
#71721
Participant
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>
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!