Back to Developer Roadmap

Margin

src/data/roadmaps/css/content/margin@e_m7y5YYPLFbVtoG79DBb.md

4.0530 B
Original Source

Margin

Margin in CSS defines the space around an HTML element's border. It creates a gap between the element and surrounding elements, controlling the spacing and layout of content on a webpage. Margins can be set on all four sides of an element (top, right, bottom, left) and can have positive or negative values.

Visit the following resources to learn more: