Are there any resources on how do I use the not() syntax in a CSS selector?
Such as:
.container[orient="landscape"] > *:not(.toolbar)
If so can you please answer with a link and some explanation?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Although the :not() pseudo-class is useful in certain situations, it is not supported except by the most recent browsers, because it is part of the CSS 3 specification. Firefox 2 and 3, Opera, Safari, Chrome, and other Gecko and Webkit based browsers support it, whereas Trident based browsers (Internet Explorer) do not support it.
It is probably a much better idea at this point in time to use the “cascading” part of CSS:
Use the .toolbar selector to override the .container selector.
I should also point out that using the attribute selector
[orient="landscape"]is not supported in older browsers, specifically IE 6 and below.Here is a good guide to CSS 3 features, :not() included: Smashing Magazine: Take Your Design To The Next Level With CSS3