IE Death March

* html body { float:left; display:inline; voice-family: "\"}\""; voice-family:inherit; }

Attribute Selectors

with 4 comments

You can’t use some handy CSS selectors like:

  1. input[type="text"] for selecting text input elements or
  2. abbr[title] for selecting all <abbr> tags with a title attribute or
  3. a[href$=".pdf"] for all links that point to pdf files

div#column and div[id="column"] are equivalent selectors, but one doesn’t work in IE6. Handy for when you want to apply a style for everything else.

24 ways has an article from 2005 that talks about some nifty things you can do with attribute selectors.


Written by M. Dave Auayan

August 31st, 2008 at 5:25 pm

4 Responses to 'Attribute Selectors'

Subscribe to comments with RSS or TrackBack to 'Attribute Selectors'.

  1. Things as div>h1 also won’t work in IE6.

    Rf

    12 Sep 08 at 6:10 am

  2. chained/multiple classes are also not supported

    like
    div.class1.class2 { …
    for

    roberkules

    15 Feb 09 at 12:51 am

  3. … for:
    [div class="class1 class2"]

    roberkules

    15 Feb 09 at 12:52 am

  4. h1:before {content:”Caution!”;color:#ff0000;}

    will add “Caution!” before content in h1 style.
    (there is also the element :after)

    this doesn’t work in IE 6, and i hate this fucking Browser for that!

    I love the IE Death March. ;)

    keno

    23 Feb 09 at 3:20 am

Leave a Reply