2015
Lynda
James Williamson
4:08
English
This course is a resource guide, covering the best practices for writing different types of CSS selectors and choosing the best selectors for targeting different HTML elements. Senior staff author James Williamson covers basic selectors, attribute selectors, pseudo-class and pseudo-element selectors, and structural selectors, as well as combinators and pattern-matching selectors. Then he offers tips to write more efficient and maintainable code, and a look at what's next for CSS selectors.
Introduction
Welcome
Using the exercise files
1. Basic Selectors
How selectors work
Element selectors
Targeting classes
Targeting IDs
Descendent selectors
Universal selector
Grouping selectors
2. Attribute Selectors
Targeting element attributes
Specifying attribute values
String matching
3. User Action Pseudo-Class Selectors
Targeting links
Defining focus
Targeting form element states
Targeting fragment identifiers
4. Structural Selectors
Targeting child elements
Targeting children by type
Targeting empty elements
Targeting inline content
The negation selector
Generated content
Combining selectors
5. Combinators
Targeting parent/child relationships
Targeting sibling elements
Targeting adjacent siblings
6. Matching Patterns
Introducing nth-child selectors
Targeting multiple instances
Matching patterns by type
Counting backwards
7. Writing Efficient Selectors
Selectors and performance
Properly structuring HTML
Strategies for writing selectors
Challenge: Writing efficient selectors
Solution: Writing efficient selectors
Conclusion
What's next in selectors?
Additional resources
http://www.lynda.com/
Download File Size:600.1 MB