Mobile app version of vmapp.org
Login or Join
Caterina187

: As the attribute selector is defined in the W3C CSS spec, you should be able to use it. But browsers implementations vary, and are more or less reliable. As you can see on SitePoint Reference

@Caterina187

As the attribute selector is defined in the W3C CSS spec, you should be able to use it. But browsers implementations vary, and are more or less reliable.

As you can see on SitePoint Reference support for CSS attribute selector, Webkit's support is buggy. You could also see that IE's css attribute selector support varies from one version to another.

Thus this selector is not supported by all browsers yet.

As a more reliable way, you should use the ID selector, which is supported by all browsers:


#logo { color: #999 ; font-size: 2em; }

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Caterina187

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme