Let's add some color so that you can see this project start to take shape. Therefore, add a style element inside the header block, and inside it, add the color classes to assign as attributes to elements inside the HTML body. These classes come from the Flat UI color section of the previous chapter. The blue shades will work nicely for this project:
<head>
<style>
.black {
background-color: black;
}
.color-0 {
background-color: #85C4ED;
}
.color-1 {
background-color: #58ADE3;
}
.color-2 {
background-color: #3499DB;
}
.color-3 {
background-color: #0F85D1;
}
.color-4 {
background-color: #0665A2;
}
.wet-asphalt {
background-color:#34495e;
}
</style>
</head>Next, we need to assign these general color class attributes to some of our elements. Add the black class to the main HTML5 element. To the next section block, stratosphere, add the wet-asphalt class to its first child DIV element. In the following four DIV elements, add the classes color-4, color-3, color-2, and color-1, that order. And in the sky section, add the color-1 class and give all of its direct child DIV elements the color-0 class. In addition, give all of the DIV elements in the space, stratosphere, and sky elements the row class. This should give you the following:
<main class="black">
<section id="space">
<div id="p0" class="row"></div>
<div id="p1" class="row"></div>
</section>
<section id="stratosphere" class="wet-asphalt">
<div id="p2" class="row wet-asphalt"></div>
<div id="p3" class="row color-4"></div>
<div id="p4" class='row color-3"></div>
<div id="p5" class='row color-2"></div>
<div id="p6" class="row color-1"></div>
</section>
<section id="sky" class="color-1">
<div id="p7" class="row color-0"></div>
<div id="p8" class="row color-0"></div>
<div id="p9" class="row color-0"></div>
<div id='p10" class="row color-0"></div>
<div id="p11" class="row color-0"></div>
<div id="p12" class="row color-0"></div>
<div id="p13" class="row color-0"></div>
</section>
<section id="objects"></section>
<section id="terra">
<div id="ground">
<div></div>
<div></div>
</div>
</section>
</main>Next, let's perform some cleanup and add a section selector to the STYLE element. Add a -1EM margin attribute to it.
section {
margin:-1EM;
}