Styling Content
Grid CSS can help layout webpages visually, but to add more customizations like fonts and background colors, we will need to write our own CSS code. CSS also allows for borders, margin, padding, and much more.
3 videos • 0 quizzes • 3 code challenges
-
Play
Preview
Fonts and Colors
12 minutes 5 seconds
-
Code Challenge
Preview
Code Challenge: Fonts and Colors
4 objectives
-
Play
Preview
Writing CSS
10 minutes 20 seconds
-
Code Challenge
Preview
Code Challenge: Writing CSS
2 objectives
-
Play
Preview
Finishing the CSS
9 minutes 16 seconds
-
Code Challenge
Preview
Code Challenge: Finishing the CSS
4 objectives
Margin and Padding
Margin and padding are two concepts in CSS that are very easy to confuse. Try experimenting with both of these by adding them to some of the elements in our example website. First try adding margin, then add padding, and then add both together. Play with the values until you feel like you understand the difference.
For a deeper understanding of margin and padding, be sure to read the W3C documentation that covers the "box model."
Hexadecimal Colors
Grasping hexadecimal values can be tricky. In this stage, we typed out some hex values and then tried guessing the color. Check out this hex guessing game where you have to do the opposite; guess the color of a given hex value.
Practicing using both of these methods will allow you to use hex colors easily.