Grow your CSS skills. Land your dream job.

IE8. Specificity

  • # May 9, 2013 at 6:31 am

    Hello alll.

    Can anyone please tell me why this css doesnt work in IE8 as expected?

    [Here is a CodePen example of the problem…](http://codepen.io/beakie/pen/esogw “CodePen”)

    I would expect the text to be blue, but IE makes it green?

    Thanks

    Gary

    # May 9, 2013 at 6:39 am

    They all show blue to me. It’s invalid markup though, that could be an issue.

    # May 9, 2013 at 6:46 am

    Invalid? I have included
    in my actual code. Something else?

    IE8 shows green for me?

    # May 9, 2013 at 6:52 am

    OK, So I created a basic html version using this example, and they were all blue for me too.

    Must be something else. Thanks, but I may be back….

    # May 9, 2013 at 7:10 am

    Yeah, ul can only have li childs, not direct text. Thinking of it that couldn’t be the issue because if the text got pushed out of the ul it wouldn’t be green either. Anyway gl!

    # May 9, 2013 at 7:11 am

    Sussed it. IE bug.

    In my original code (that doesnt work), if I call the class “nobullets”, the text goes blue, if I call it “fieldsetx”, it goes green. It is just another IE feature I will have to work around.

    Thanks

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".