.parent-element {
display: grid;
place-items: center;
}
div {
display: inline-grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 3px;
justify-items: center;
align-items: center;
}
display: grid;
justify-content: center;
.center {
display: grid;
place-items: center;
}
<div class="container">
<div class="row align-items-center vh-100">
<div class="col-6 mx-auto">
<div class="card shadow border">
<div class="card-body d-flex flex-column align-items-center">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of
the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
</div>
</div>
Code Example |
---|
Css :: grid center align |
Css :: center in grid |
Css :: css animate flashing |
Css :: tailwind border bottom |
Css :: sticky footer bootstrap 3 |
Css :: line break doesnt work css |
Css :: css height animation |
Css :: ion-item no padding ionic 4 |
Css :: drop shadow css |
Css :: center div absolute |
Css :: box shador of one border css |
Css :: css mobile friendly |
Css :: div nebeneinander |
Css :: invert png color css |
Css :: how to write css for input type text |
Css :: css background image svg not showing |
Css :: css center div vertically |
Css :: box shadow |
Css :: css multiple backgrounds |
Css :: disable cursor css |
Css :: steps() property css |
Css :: css border up and down |
Css :: electron drag window |
Css :: background color css rgb |
Css :: css underline |
Css :: font awesome eyes |
Css :: css font face |
Css :: reduire espace entre ligne css |
Css :: margin for text in html |
Css :: add css file to html |