CSS · Properties — CSS Logical Properties and Values
margin-block
The CSS margin-block property. Initial value: margin-block-start,margin-block-end. Not inherited.
Syntax
margin-block: <'margin-top'>{1,2}Example
Try it
Notes
Media: visual. Applies to: sameAsMargin. Computed value: margin-block-start,margin-block-end.
More in this group
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.