From the course: CSS Essential Training
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Project: Adding background styles - CSS Tutorial
From the course: CSS Essential Training
Project: Adding background styles
(upbeat music) - [Instructor] In this project exercise, we'll be adding the background image to the homepage and some background styles to the footer as well. Although the Resume page also uses a background image, this style will require learning about a few more concepts to add the image only to the top, so we'll just leave this for now. Let's move back to the editor and add some CSS. Since we'll be adding just the background image to the homepage, let's go under the homepage comment block, and start by adding the selector, .home, and the curly brackets. Then we'll add the shorthand background property to apply the image to the body element on the homepage only. Add a colon, and then we'll use the URL function value to add the path to the image. To determine the file path, we need to start with the location of the CSS file. It's currently located within a CSS folder. So the path will actually start with .., which…
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
-
-
-
-
CSS specifications and the W3C3m 12s
-
(Locked)
CSS syntax and terminology4m 2s
-
(Locked)
CSS values and units3m 33s
-
(Locked)
The color property and values4m 31s
-
(Locked)
Creating a color palette1m 52s
-
(Locked)
Type and universal selectors3m 16s
-
(Locked)
ID selectors2m 34s
-
(Locked)
Class selectors3m 17s
-
(Locked)
Descendant combinators and selector lists2m 56s
-
(Locked)
The background property4m 39s
-
(Locked)
Project: Prepping the CSS file4m 5s
-
(Locked)
Project: Adding background styles7m 39s
-
(Locked)
Pseudo-classes and pseudo-elements4m 30s
-
(Locked)
Inheritance and the cascade2m 20s
-
(Locked)
Specificity3m 45s
-
(Locked)
Project: Styling links5m 23s
-
-
-
-
-
-
-