mx-2: Tailwind CSS Margin class

The mx-2 class adds a margin of 0.5rem (8px) to the left and right sides of an element


mx-2 (Horizontal Margin 2)

The mx-2 class adds a margin of 0.5rem (8px) to the left and right sides of an element.

Example Usage

html
<div class="mx-2 bg-yellow-500 text-black">
Horizontal margin of 0.5rem
</div>

Preview

Mx-2

Windframe is a drag and drop builder for rapidly building tailwind css websites and UIs

Start building stunning tailwind UIs! 

Build from scratch or select prebuilt tailwind templates