Make your first page responsive
To add an external stylesheet to your simple index.html
file:
bootstrap.css
file to your website's css folder (in the same place as your style.css
.<head>
of your page.<link rel="stylesheet" href="css/bootstrap.css">
. You want this to point to wherever your bootstrap.css
file lives.<head>
: <meta name="viewport" content="width=device-width, initial-scale=1">
This will ensure that your Bootstrap site renders correctly on phones and small screens.<div class="container"> <div class="row"> <div class="col-sm-4"> <h2>Heading</h2> <p>Locavore swag PBR, YOLO sustainable shabby chic pork belly Austin jean shorts 3 wolf moon. PBR&B twee single-origin coffee Neutra, dreamcatcher artisan banjo High Life. You probably haven't heard of them organic brunch before they sold out, PBR&B aesthetic whatever actually.<p> </div> <div class="col-sm-4"> <h2>Heading</h2> <p>Locavore swag PBR, YOLO sustainable shabby chic pork belly Austin jean shorts 3 wolf moon. PBR&B twee single-origin coffee Neutra, dreamcatcher artisan banjo High Life. You probably haven't heard of them organic brunch before they sold out, PBR&B aesthetic whatever actually.<p> </div> <div class="col-sm-4"> <h2>Heading</h2> <p>Locavore swag PBR, YOLO sustainable shabby chic pork belly Austin jean shorts 3 wolf moon. PBR&B twee single-origin coffee Neutra, dreamcatcher artisan banjo High Life. You probably haven't heard of them organic brunch before they sold out, PBR&B aesthetic whatever actually.<p> </div> </div> </div>This will create a row of three columns (placeholder text courtesy of Hipster Ipsum). Feel free to read the grid docs and try to add new column rows.