Posts Tagged ‘css’

CSS Attribute Selector madness?

March 30, 2016

Today I stumbled upon a CSSĀ attribute selector which made me think.

height: 29px;

The interesting thing here is the [class] part of the CSS. If I understand correctly, this means, that elements should be selected which have the class attribute. I understand why someone might be interested to style all images with alt-tags differently: img[alt]. But is there any legitimate use of [class]? Cause this only says: select elements which have a class assigned… It does not even check WHICH class, it selects just all classes. And it gets weirder when it is combined with a specific class likeĀ fooClass in this example. Has anybody an idea what this means?


A List Apart

November 10, 2008

“For people who make websites”
A List Apart Magazine explores the design, development, and meaning of web content, with a special focus on web standards and best practices.

Some articles

And much more. The new articles can easily be followed by using their RSS feed.

The life of a Web Designer

June 6, 2008

Source: Tapestry Central