Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Col and Row Bootstrap</title>
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
- <style type="text/css">
- .row > div {
- background-color: teal;
- padding: 20px;
- border: 2px solid black;
- }
- </style>
- </head>
- <body>
- <div class="container">
- <div class="row">
- <div class="col-3">
- This is a section
- </div>
- <div class="col-3">
- This is another section
- </div>
- <div class="col-3">
- This is a third section
- </div>
- <div class="col-3">
- This is a fourth section
- </div>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment