ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 5 Container Border
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.1/dist/css/bootstrap.min.css" rel="stylesheet" /> <meta name="description" content=""> <title>Bootstrap 5 Container Border</title> </head> <body> <div class="container border bg-light text-center"> <h1>Bootstrap 5 Container Border</h1> <p>To apply border around the container, use .border class.</p> </div> <div class="container border border-success bg-light text-center mt-5"> <h2>Bootstrap 5 Container With Border color</h2> <p>To apply border around the container, use .border & border-* classes.</p> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js"></script> </body> </html>
Output :
Running