Bootstrap CSS Classes

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

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

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

Preview

Are you tired of writing HTML by hand?

More Bootstrap CSS classes in Spacing category

© 2024 Shuffle. All rights reserved.