.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 :: gradient border with border radius |
Css :: css blink |
Css :: make triangle using div |
Css :: highlight table row on hover |
Css :: boostrap pointer |
Css :: get all tables laravel |
Css :: css glow text |
Css :: tablet screen size css |
Css :: aligning form elements to center in css |
Css :: puntos suspensivos css |
Css :: css safari remove scrollbar |
Css :: repeat with auto-fit |
Css :: install tailwind with cdn |
Css :: css p tag text wrap |
Css :: css media two conditions |
Css :: css table borders |
Css :: scroll tbody fixed thead |
Css :: how to get font awesome outline |
Css :: cemter absolute elemetn |
Css :: how to give linear transprerancyon background image |
Css :: how to target input type with css |
Css :: css darken |
Css :: jquery remove css class |
Css :: css list line spacing |
Css :: how to set background image for button in css |
Css :: Push an existing folder to git |
Css :: padding top |
Css :: bootstrap word-wrap: break-word; |
Css :: css orange color |
Css :: styles only for IE |