Web BuildingLesson 63Free preview
Web CSS
This lesson is part of W3.CSS · All levels
Summary
CSS sets the page's appearance from colors, letters, distances, to layout. CSS code is written with a pair of selectors and a declaration block containing the property and its value. Because of their rugged nature, more specific rules usually prevail in a collision.
Key points
- The selector determines the element to be distilled, for example a class with a dot mark
- The box model consists of content, padding, border, and margin
- Specificity determines which rules win in conflict
- Separate CSS from external files for easy maintenance
- Modern layout uses displays, flexboxes, and grids
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.