Create a page that matches the following criteria:
– Contains a navbar (bootstrap navbar)
– Two rows.
– Each row contains three columns.
– Each column can contain any component.
Use the starter template available in prepwork.
You have been using the preset bootstrap style sheet. You are now going to create your own css rules that will change the appearance of your website.
You are going to change the following elements:
There is a exemplar to help you get started.
The Bootstrap framework allows us to create responsive websites or web apps. Furthermore, Bootstrap comes with many components and widgets, and we are provided with sample code at getbootstrap.com.
Below is a starter template:
<title>Bootstrap - DHS</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- This line tells the web page to resize according to the size of the device -->
<!-- Bootstrap -->
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet"
<!-- loads the style sheet for bootstrap -->
Bootstrap uses a grid layout to organise the appearance of the web page or web app. You can view diiferent examples of using the grid layout at getbootstrap
Have a look at an example below:
<!-- place your components here or any html code -->
The grid system works by providing twelve columns per row. For example, if you want three equal columns you would use the class ‘col-md-4’ three times. Furthermore, you can split the columns into unequal amounts such as ‘col-md-8’, col-md-2 and col-md-2.
Playing around with the different column sizes and positions is recommended.