.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;
}
.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 :: CS REMOVING BACKGROUND IMAGE |
Css :: increase tooltip width in angular material |
Css :: input checkbox size css |
Css :: blocksatz css |
Css :: scss not working with storybook |
Css :: css variables |
Css :: chrome hide blue highlight css mobile |
Css :: page icon css |
Css :: tailwind input field hide arrows |
Css :: css logo color |
Css :: css add required asterisk after |
Css :: scss transition |
Css :: radio button color css |
Css :: how to center a div vertically and horizontally |
Css :: css animate background image |
Css :: backgrond image shopify css |
Css :: css not class |
Css :: horizontally align button |
Css :: Conditionally loading resources with media queries |
Css :: border around img css |
Css :: media query min max |
Css :: css edit scroll bar |
Css :: css text vertical spacing |
Css :: ul li dot seprator |
Css :: html5 video hide timeline |
Css :: how to make a triangle in css |
Css :: padding bottom |
Css :: rainbow text css |
Css :: border-radius cross browser |
Css :: souligner titre css |