Lab 3
Lab 3
In this lab, you are given an index.html file that contains our web page's content, and we will be
using Bootstrap to build a responsive layout and style the page.
After reloading the page you should notice subtle changes to the page like a different font,
margins, and spacing on the page. This lets us know that Bootstrap was added properly.
1. Apply the bootstrap grid classes to the cookies on the page in the <main> section. The
resulting responsive layout should display as follows:
o On mobile screens, 1 cookie per row
o Starting on medium md screens, 2 cookies per row
o Starting on large lg screens, 4 cookies per row
o Read about making your images responsive
2. Apply styling and classes so that the title text is displayed centered within
the <header> section. Below are some hints on how to do this:
o Use custom styles for this section
o Give the header section a fixed height, I used 400px
o Read about using images with a cover background-size
o Read about how to center a div block
o Choose a background image of your own or use the image provided
o There are multiple ways to solve this section
3. Style the "About us" section and the <footer> section of the page to display similar to
the screenshots
o Use a grid for the "About us" section
o style the footer as you like
3. Using only bootstrap grid styles make the cookie products alternate as shown and
described in the following screenshots:
IMPORTANT:
• Don't change the order of the 3 main cookie html tags, the <h3>, followed by the <p>,
and then the <img> tags. Remember, we want to keep semantic order.
• You can add <div>'s and bootstrap classes as needed, you can wrap the tags in div's as
needed, as long as you don't change the order.
Additional Resources