luistavares

Bootstrap - Duas regiões lado a lado e um botão centralizado

Jun 5th, 2023 (edited)
2,386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.11 KB | Source Code | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.   <title>Bootstrap Example</title>
  5.   <meta charset="utf-8">
  6.   <meta name="viewport" content="width=device-width, initial-scale=1">
  7.   <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
  8.   <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
  9.   <style>
  10.    
  11.   .custom-height {
  12.     height: 500px;
  13.   }
  14.   .custom-bg1 {
  15.     background-color: #0af1b3;
  16.   }
  17.   .custom-bg2 {
  18.     background-color: #fc8d16;
  19.   }
  20.  
  21.   </style>
  22. </head>
  23. <body>
  24.  
  25. <div class="container-fluid">
  26.   <h1>Testing the Grid</h1>
  27.   <div class="row">
  28.     <div class="col-4 offset-1 custom-height custom-bg1">
  29.       <!-- Conteúdo da primeira região -->
  30.     </div>
  31.     <div class="col-4 offset-2 custom-height custom-bg2">
  32.       <!-- Conteúdo da segunda região -->
  33.     </div>
  34.   </div>
  35.  
  36.   <div class="row mt-5">
  37.     <div class="col-4 offset-4">
  38.       <div class="d-grid">
  39.         <button class="btn btn-primary btn-lg">Botão</button>
  40.       </div>
  41.     </div>
  42.   </div>
  43.  
  44. </div>
  45.    
  46. </body>
  47. </html>
Advertisement
Add Comment
Please, Sign In to add comment