With the HTML structure for the footer in place, we have what we need to start styling and getting this footer looking like what we designed in Photoshop.

We create a new SCSS file just for the footer, because that just makes sense to keep modularized and that's what we've been doing for everything else. We @import it into the main stylesheet at the bottom.

We darken the footer by using just a little RGBa background. Sass helps us a little bit because you can do this in Sass which is super cool: rgba(black, 0.5); We use an inset box shadow to create the shelf-like effect.

We push in the content away from the edges with left and right padding. Right away we need to adjust the amount of that padding based on the current breakpoint.

We style the bottom footer in much the same way. It's just a bit darker to make it look another level lower.

Posting Code

You may write comments in Markdown. This makes code easy to post, as you can write inline code like `<div>this</div>` or multiline blocks of code in triple backtick fences (```) with double new lines before and after.

Code of Conduct

Absolutely anyone is welcome to submit a comment here. But not all comments will be posted. Think of it like writing a letter to the editor. All submitted comments will be read, but not all published. Published comments will be on-topic, helpful, and further the discussion or debate.

Want to tell us something privately?

Feel free to use our contact form. That's a great place to let us know about typos or anything off-topic.

Submit a Comment

icon-closeicon-emailicon-linkicon-menuicon-searchicon-tag