今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Project: Adding a header image
- [Instructor] Let's start this project update by taking a look at the header markup for the resume page. We added the content wrapper only around the heading tags to center align the content. This leaves the width of the header element unchanged so we can use it to add the background image. In the CSS file, under the Resume Page section, let's add a new declaration block. We'll use .resume space header as the selector so it's only applied to the header on the resume page. Then we'll add the background property with the URL function value and the file path to the image. I'm using the same image as the homepage, so I'm just going to copy the file path from there. Let's see how this looks in the browser. Save your file, and refresh. So the image has been added, but it isn't quite the look I was going for. The image is displayed behind the text, and not only that, we can't even see much of the image. Looking at the…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
Intro to the CSS box model58 秒
-
(已锁定)
The box model properties3 分钟 44 秒
-
(已锁定)
Box-sizing and the box model fix4 分钟 23 秒
-
(已锁定)
Inline, block, and display4 分钟 39 秒
-
(已锁定)
Project: Footer styles and icons4 分钟 4 秒
-
(已锁定)
Debugging with developer tools5 分钟 6 秒
-
(已锁定)
Managing box model quirks4 分钟 2 秒
-
(已锁定)
Project: Background image update3 分钟 23 秒
-
(已锁定)
Using negative margin values2 分钟 42 秒
-
(已锁定)
Center aligning with margin3 分钟 42 秒
-
(已锁定)
Project: Adding content wrappers4 分钟 44 秒
-
(已锁定)
Project: Adding a header image5 分钟 56 秒
-
-
-
-
-
-