ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 5 Individual Column Alignment Inside Container
Source Code
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"> <title> Individual Column Alignment Inside Container</title> </head> <body> <h1 class="text-center">Bootstrap 5 Individual Column Alignment Inside Container</h1> <p class="text-justify text-center">In this example, you have to learn individual column alignment inside container .</p> <div class="container"> <div class="row" style="height:200px;background-color:cyan;"> <div class="col align-self-start"> First Column </div> <div class="col align-self-center"> Second Column </div> <div class="col align-self-end"> Third column </div> </div> </div> <!-- Option 1: Bootstrap Bundle with Popper --> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js"></script> </body> </html>
Output :
Running