HTML and CSS Reference
In-Depth Information
1.
<section
class="hero container"
>
2.
...
3.
</section>
Next we'll want to create a new section within our CSS file for home page styles,
and, once we're ready, we'll use the class of
hero
to apply
padding
around all
four sides of the
<section>
element.
1.
/*
2.
========================================
3.
Home
4.
========================================
5.
*/
6.
7.
.hero {
8.
padding: 22px 80px 66px 80px;
9.
}
Our website is starting to come together, especially the home page, as shown in
Figure 4.8
.
Search WWH ::
Custom Search