ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 5 Full Width Container (Fluid 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 Fluid Container</title> </head> <body> <h1 class="text-center my-">Bootstrap 5 Full Width Container</h1> <p class="my-3"> Bootstrap 5 full-width containers span the entire width of the viewport or screen. To create a fluid container, simply add the .container-fluid class to the div. </p> <div class="container-fluid bg-light text-center"> <h2>Learn Bootstrap 5 Fluid Container</h2> <p>The fluid container covers the whole available width.</p> </div> <!--/container--> <!-- 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