-grid-Δ∇
Documentationrow
Level 1:(top
)col-sm-3
row
Level 2:(col-sm-9
)col-8 col-sm-6
Level 2:(col-sm-9
)col-4 col-sm-6
<div class="container text-center"> <div class="row"> <div class="col-sm-3 text-dark bg-info p-2">Level 1:col-sm-3</div> <div class="col-sm-9"> <div class="row"> <div class="col-8 col-sm-6 bg-success p-2">Level 2:col-8 col-sm-6</div> <div class="col-4 col-sm-6 text-dark bg-warning p-2">Level 2:col-4 col-sm-6</div> </div> </div>
row justify-content-md-center
col col-lg-2
col-md-auto
col col-lg-2
row
col
col-md-auto
col col-lg-2
grid text-center
style="--bs-columns: 12; --bs-gap: 0rem;"
(g-col-4
)x3<div class="grid text-center" style="--bs-columns: 12; --bs-gap: 0rem;"> <div class="g-col-4 p-3 bg-info"><code class="d-block p-2 user-select-all text-black">grid text-center</code></div> <div class="g-col-4 p-3 bg-warning"><code class="d-block p-2 user-select-all text-black">style="--bs-columns: 12; --bs-gap: 0rem;"</code></div> <div class="g-col-4 p-3 bg-info">(<code class="d-inline p-2 user-select-all text-black">g-col-4</code>)x3</div> </div>
<div class="col-12 vstack gap-3"> <div class="bg-info p-2">First item</div> <div class="bg-warning p-2">Second item</div> <div class="bg-info p-2">Third item</div> </div> <div class="col-12 hstack gap-3"> <div class="bg-info p-2">First item</div> <div class="bg-warning p-2">Second item</div> <div class="bg-info p-2">Third item</div> </div> <hr /> <div class="vstack gap-2 col-md-4 mx-auto"> <button type="button" class="btn btn-primary">Save changes</button> <button type="button" class="btn btn-outline-secondary text-capitalize">cancel</button> </div> <hr /> <div class="hstack gap-3"> <input class="form-control me-auto" type="text" placeholder="Add your item here..." aria-label="Add your item here..." /> <button type="button" class="btn btn-secondary">Submit</button> <div class="vr"></div> <button type="button" class="btn btn-outline-danger">Reset</button> </div>