Skip to content

Glossary: CSS Layout and Responsive Design

Margin auto

Also written: margin: auto, margin-left: auto

An automatic margin soaks up spare space. On a block it centers it horizontally; on a flex item it pushes the item away, like Kettle & Crane's cart link.

Where the book teaches it

Related terms

Flex container / item