center_div
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container d-flex align-items-center justify-content-center">
<div>
<h1>You Div</h1>
</div>
</div>
Run code snippetHide results
Seth Ansah Tetteh