Blog Archive
-
▼
2012
(25)
-
▼
August
(14)
- The cascade and specificity
- Attribute selectors
- Child and adjacent sibling selectors
- Advanced selectors
- The universal selector *
- Pseudo-classes
- Common selectors
- Getting Your Styles to Hit the Target
- Divs and spans
- IDs or Classes?
- Naming your elements
- IDs and class names
- The power of meaning
- A brief history of markup
-
▼
August
(14)
Labels
- CSS (25)
- Tutorials (4)
- Web design (7)
Powered by Blogger.
Thursday, August 30, 2012
Advanced selectors
CSS 2.1 and CSS 3 have a number of other useful selectors. Unfortunately, while most modern browsers support these advanced selectors, older browsers like IE 6 do not. Luckily, CSS was created with backward compatibility in mind. If a browser doesn’t understand a selector, it ignores the whole rule. That way, you can apply stylistic and usability embellishments in more modern browsers and not worry about it causing problems in older browsers. Just remember to avoid using these more advanced selectors for anything critical to the function or layout of your site.
Címkék:
CSS
Subscribe to:
Post Comments (Atom)
0 Comments:
Post a Comment