Bootstrap CSS Classes

Bootstrap CSS class .my-1 / my-*-#

<div class="my-0 bg-primary d-inline-block">Spaced Div</div>
<div class="my-1 bg-primary d-inline-block">Spaced Div</div>
<div class="my-2 bg-primary d-inline-block">Spaced Div</div>
<div class="my-3 bg-primary d-inline-block">Spaced Div</div>
<div class="my-4 bg-primary d-inline-block">Spaced Div</div>
<div class="my-5 bg-primary d-inline-block">Spaced Div</div>

<!-- respsonsive viariations -->
<div class="my-sm-5 d-inline-block bg-primary">Spaced Div</div>
<div class="my-md-5 d-inline-block bg-primary">Spaced Div</div>
<div class="my-lg-5 d-inline-block bg-primary">Spaced Div</div>
<div class="my-xl-5 d-inline-block bg-primary">Spaced Div</div>

Preview

Are you tired of writing HTML by hand?

More Bootstrap CSS classes in Spacing category

© 2024 Shuffle. All rights reserved.