Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

Practice exercises CHAPTER 5 249



  1. After the aside style rule, add a style rule for the
    element. Set the styles to
    position the footer clear after the

  2. After the footer style rule, add a style rule for the
    element whose id is container.
    The purpose of this style is to ensure that the float: left styles you’ve added don’t wrap
    when the browser window is resized to a small size.

  3. Set the minimum width to 800 pixels as follows.
    #container {
    min-width: 800px;
    }

  4. In the existing style rule for the calculator
    element, change the height and width
    to 400 pixels as follows.
    #calculator {
    border: solid;
    background-color: hsl(255, 100%, 60%);
    width: 400px;
    height: 400px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 10px;
    }

  5. In the existing style rule for the input button, change the font size to 20 point as
    follows.
    input, button {
    font-family: Arial;
    font-size: 20pt;
    border-width: thick;
    border-color: hsl(255, 100%, 100%);
    margin: 5px;
    }


The following is the completed style sheet for your reference.
* { margin : 0; padding : 0; }

aside, footer, header, hgroup, nav {
display: block;
}
Free download pdf