Coming from Lesson 2: Bootstrap Framework? Great! Now you’ll learn how to use Bootstrap’s grid system to create responsive layouts.
Bootstrap’s grid system is the foundation of responsive layouts. It uses a 12-column system that automatically adapts to different screen sizes.
Visit these links on W3 Schools. Read or skim the lessons. Click on the TRY IT YOURSELF button to see examples of the code.
After you finish, answer the questions in your group.
For this section, you will not use VSCode. Just use the TRY IT YOURSELF button. Be sure to make some changes to the code if you are curious as to what things do. Don’t be afraid to break the code, it will revert back if you refresh!
Visit these site links. Click on TRY IT YOURSELF. Get a general understanding of how it works. Then answer the questions at the end with your group.
bg-primary
or bg-dark
with col
?You may review the original Water Conservation Tips App here
Now you have all the tools you need to complete the other 2 pages of the Water Conservation App. Use Bootstrap’s grid system (row and col) to create responsive layouts for the additional pages.
Hint: Use row
and col
classes to get the effect of a grid for the layouts of the other two pages.
To get started with a project, you may refer to the start a project skill guide.
Remember to add and commit after each successful milestone. See the git snippets for useful commands.
You may work on this together, but it is not a group project. Each individual should have their own git repository and code.
If you finish early, as a challenge, you may work on your own project with your own idea using Bootstrap’s grid system.
Optional Images:
Ready to create interactive forms and games? Continue to Lesson 4: Bootstrap Grid and Input Forms to master Bootstrap utilities and form components!