On the previous page you got a taste of layouts with the “Shoping Site” product page. Here, we’ll explore how we could build a blog page in under 3 hours, all with the power of CSS.
If you’re still a little uncertain how all this code comes together, please complete this tutorial using the files found in the “follow-along” folder:
This guide is broken up into 10 areas, so you can just view what you need help on:
Flies, linking, and site structure.
Using fonts you’ve downloaded, and ones you’re importing from Google Fonts.
Applying fonts, creating selectors, and adding background images and colors.
Styling the basic pieces, and an intro to DIVs and classes.
NOTE: At 09:00, I gave you the wrong property. It should be max-value: 700px;
not min-value: 700px;
.
Creating a site information area at the top of your page, which displays the site’s title, slogan, and…
…a site logo that changes on hover.
First creating a big box for a large body of text, then adding typographical styling and pseudo elements to make it visually interesting.
NOTE: :first-letter
is a pseudo-element, not a pseudo-class.
Using divs and floats to “pull” quotes out from the main body.
Creating a linking button using pseudo classes.
Creating a navigation bar to house links to your site pages and social media accounts, as well as adding a dropdown menu to organize content.
NOTE: At 27:00, I mispelled “width” which is why my .menu-item
selections weren’t sizing or centering. The element should look like
#site-links .menu-item {
width: 6em;
padding: .5em 1em;
display: inline-block;