margin
Margins surround the border edge of a box, providing spacing between boxes. 3. Margins
Links about margin
margin | CSS-Tricks
The margin property defines the outermost portion of the box model, creating space around an element, outside of any defined borders. Margins are set
Everything You Need To Know About CSS Margins — Smashing Magazine
Margins in CSS seem simple enough at first glance. Applied to an element it forms a space around the element, pushing other elements away. However, there is more to a margin than you might think.
Code sample
div {
margin-right: 4rem;
}
Explore other pages
- lang
Specifies the primary language for the page or an element.
- placeholder
Represents a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
- svg
SVG is a language for describing two-dimensional graphics.
- position: sticky
Makes an element stick.