47 shades of grey (alexia47) wrote in css_forum,
47 shades of grey

IE6 grr - I need :first-child help!


I have a real problem and I need some help! I have a content managed site where I cannot edit the HTML so my only options are javascript and CSS. I have a really simple menu which basically looks like this:-

<*li>First line<*/li>
<*li>Second line<*/li>

(without the stars)

I want to make the first li display: none which I've done in with ul li:first-child {display: none} but of course this doesn't work in good old IE6!

Can anyone point me in the direction of a pure css/javascript way to do this? I've been all over google and a lot of people suggest adding a class (which I can't do because I can't edit the HTML) and the only JS way of doing it that I've found I can't make work :(

Any help would be appreciated!

Thanks :)

Edit: OK, http://dean.edwards.name/weblog/2008/01/ie7-2/ saved my life lol
  • Post a new comment


    default userpic
  • 1 comment