sudhakarinfotech
(current)
Run Code
Live Code Editor- Bootstrap 5 Column Align Right
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"> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"> <title>Bootstrap 5 Column Right Align</title> <style type="text/css"> row { width: 100%; height: 200px; background-color: #F8F9FA; } </style> </head> <body> <div class="container bg-light pt-4"> <h1 class="text-center">Bootstrap 5 Horizontal Column Alignment</h1> <p class="text-justify text-center">In this example,you will learn about horizontal column alignment.</p> <div class="row justify-content-end"> <div class="col-4"> First Column of the existing row </div> <div class="col-4 "> Second Column of the existing row </div> </div> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script> </body> </html>
Source Code Output :
Running