ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 5 Responsive 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>Bootstrap 5 Responsive Container</title> </head> <body> <h1 class="text-center my-3">Responsive Container</h1> <div class="container-sm bg-success">100% wide until small breakpoint</div> <br> <div class="container-md bg-warning">100% wide until medium breakpoint</div> <br> <div class="container-lg bg-danger">100% wide until large breakpoint</div> <br> <div class="container-xl bg-dark text-white">100% wide until extra large breakpoint</div> <br> <div class="container-xxl bg-info">100% wide until extra extra large breakpoint</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