From the course: CSS Essential Training
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Project: List reset and header updates
From the course: CSS Essential Training
Project: List reset and header updates
- [Narrator] Let's start this project update by adding the base starter styles discussed in the previous lessons. To cut down on some manual typing, I've included a file called base.css in the Starter Files' References folder. It includes CSS for the alternative box model, the 100% height value set to the HTML and body elements to give us flexibility to create viewport-based layouts, and the default margin and padding reset for the body element, which will remove the white space around the page. Since these are used to modify the default browser styles, let's copy all the declarations on this page and add them to our styles.css file, as the first global styles. Then save the file. With the margin and padding set to zero for the body element, the background styles in each section now extends to the left and right edges of the browser viewport. But there's still space above the navigation. Inspecting the element will show…
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
-
-
-
-
-
-
(Locked)
Introduction to the CSS box model1m 4s
-
(Locked)
Width, height, and display3m 7s
-
(Locked)
Padding, margin, and border4m 59s
-
(Locked)
Center-aligning with margin3m 7s
-
(Locked)
Box-sizing and the box model fix3m 31s
-
(Locked)
Working with developer tools5m 1s
-
(Locked)
Margin collapse and inline spacing2m 48s
-
(Locked)
Creating full-height layouts3m 2s
-
(Locked)
Project: List reset and header updates4m 51s
-
(Locked)
Project: Centering content with margin5m 49s
-
(Locked)
Project: Heading resets and border styles4m 4s
-
(Locked)
-
-
-
-
-
-