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