CSS · Properties — CSS Box Model

margin-trim

The CSS margin-trim property. Initial value: none. Not inherited.

Syntax
margin-trim: none | in-flow | all

Example

Try it

Notes

Media: visual. Applies to: blockContainersAndMultiColumnContainers. Computed value: asSpecified.

More in this group

padding-bottom padding-left padding-right padding-top

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course