M

Last updated on

The margin property defines the outermost portion of the box model, creating space around an element, outside of any defined borders. Margins are set using lengths, percentages, or the keyword auto and can have negative values. Here’s an example: .box { margin: 0 3em 0 3em; } margin is a shorthand property and accepts up

Continue reading →