W3.CSSLesson 8Free preview
W3.CSS Margins
This lesson is part of W3.CSS · All levels
Summary
The margin sets the distance outside the element so that the components do not stick together. W3.CSS provides w3-margin for the entire distance and w3-margin-top, w3-margin-bottom, w3-margin-left, w3-margin-right for the particular side. Consistent margin adjustment provides a neat rhythm of space between pages.
Key points
- The margin is outside the element and does not come in the background colored
- W3-margin adds 16px distance on all sides
- W3-margin-top, w3-margin-bottom, w3-margin-left, and w3-margin-right set to the sides
- W3-center uses the margin auto to center the block
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.