: 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
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; }
More posts by @Caterina187
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.