CSS

33 lessons

Achievements
Combined Shape@2x

The Certificate

avatar

Margins

The final component in the CSS box model is the margin. The margin properties allow developers to set the spacing around the border of an element's box.

An element's margin is not affected by its background-color, it is always transparent. However, if the parent element has the background color it will be visible through its margin area.