last-child CSS issues

Posted by Neurofluxation on Stack Overflow See other posts from Stack Overflow or by Neurofluxation
Published on 2010-05-12T10:10:32Z Indexed on 2010/05/12 10:14 UTC
Read the original article Hit count: 293

Filed under:
|

Hey you guys (and girls),

I have implemented the following CSS:

#tab-navigation ul li:last-child {
    background-image: url(../images/tabs-end.gif);
    background-repeat: no-repeat;
    color: #fff;
    display: block;
    border: 1px solid red;
    background-position: right;
}

However, for some reason this is not working at all in IE (surprise!) - I read (after some research) that IE requires a DOCTYPE, but I already have <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> defined.

Any ideas peeps?

© Stack Overflow or respective owner

Related posts about css

Related posts about html