From the course: Creating a Responsive Web Design
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Styling the footer - CSS Tutorial
From the course: Creating a Responsive Web Design
Styling the footer
- So now we're going to style our footer element. So if I scroll down here, we can see that we have our copyright symbol and we have two hyperlinks inside of here. So let's go back to our CSS. Let's add a few lines. I'll add a CSS comment here called footer. Then the first thing we'll do is target the main footer element. Let's come in here and set the font size to .8em So this is 80% of or 20% smaller than the base font size. Next, we'll set a margin to 40px on all four sides. And next we'll set the color to a little bit of a lighter gray. So #, and 9 for red, green, and blue. Next we'll target the div element inside of the footer. If we go back to the HTML, and scroll down, we added a div with a class of content inside of here as well. So here we'll type footer space .content Put in our brackets. What we're going to do here, is we're going to set a display type of inline. So this is the default display type for anchor links and span elements, and what this basically does, is allows…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Importing a Google Font3m 54s
-
(Locked)
Defining the basic text styles4m 18s
-
(Locked)
Styling the heading and page container4m 45s
-
(Locked)
Styling the logo and hero item6m 50s
-
(Locked)
Creating the button style4m 32s
-
(Locked)
Setting up a three-column row6m 4s
-
(Locked)
Adding graphics to the main section4m 54s
-
(Locked)
Clearing floats with pseudo-elements4m 3s
-
(Locked)
Styling the atmosphere section3m 25s
-
(Locked)
Styling the how-to section aside elements5m 9s
-
(Locked)
Styling the how-to section blockquote element5m 37s
-
(Locked)
Adding content with pseudo-elements5m 35s
-
(Locked)
Styling the footer3m 22s
-
-
-
-
-
-
-