Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

248 CHAPTER 5 More HTML5


top: 0px;
left: 80px;
width: 100%;
margin-top: 10px;
}


  1. After the headerText style rule, insert a text rule for the

    element. Add styles to
    set the font size to 64 pixels and set the line height to 55 pixels as follows.
    h1 {
    font-size: 64px;
    line-height: 55px;
    }


  2. After the h1 style rule, insert a text rule for the

    element. Add styles to set the
    font size to 18 pixels, set the line height to 20 pixels, and set the font style to italic as
    follows.
    h2 {
    font-size: 18px;
    line-height: 20px;
    font-style: italic;
    }


  3. After the h2 style rule, create a style rule for the

  4. After the nav style rule, add a style rule for the main
    element. Set the styles to
    float to the left, beside the

  5. After the main div style rule, add a style rule for the

Free download pdf