Red div elements are shown to highlight margin at the start and end of the blue div element in the block direction.
Demo of the different values of the margin-block property.
Click the property values below to see the result:
Play more with the code in our Tryit yourself editor: Try it Yourself ❯