luistavares

Usando a Grid Bootstrap

Feb 25th, 2018
347
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
  8.   <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  9.   <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
  10.   <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
  11. </head>
  12. <body>
  13.  
  14. <div class="container-fluid">
  15.   <h1>Testing the Grid</h1>
  16.    <p>Resize the browser window to see the effect.</p>
  17.   <div class="row">
  18.     <div class="col-sm-6 col-md-3 col-lg-2" style="background-color:yellow;">
  19.       Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<br>
  20.       Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  21.     </div>
  22.     <div class="col-sm-6 col-md-3 col-lg-2" style="background-color:pink;">
  23.       Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<br>
  24.       Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  25.     </div>
  26.      <div class="col-sm-6 col-md-3 col-lg-2" style="background-color:green;">
  27.       Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<br>
  28.       Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  29.     </div>
  30.     <div class="col-sm-6 col-md-3 col-lg-2" style="background-color:blue;">
  31.       Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<br>
  32.       Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  33.     </div> 
  34.     <div class="col-sm-6 col-md-3 col-lg-2" style="background-color:gray;">
  35.       Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<br>
  36.       Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  37.     </div>
  38.     <div class="col-sm-6 col-md-3 col-lg-2" style="background-color:red;">
  39.       Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<br>
  40.       Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  41.     </div>
  42.   </div>
  43. </div>
  44.    
  45. </body>
  46. </html>
RAW Paste Data