HTML and CSS Reference
In-Depth Information
Here's a modified style for the page body that changes the background color and adds a bit of
space around the content:
body {
background-color: #1649AD;
padding: 10px;
}
You can also customize the header and footer elements slightly to define the color of the text, font
size, and a vertical offset, as shown below:
header {
font-size: x-large;
color: #ffffff;
padding-bottom: 50px;
}
footer {
font-size: large;
color: #eeee00;
padding-top: 50px;
}
Now run the application and be proud of it! (See Figure 1-18.)
FIGURE 1-18 The application running with a modified style.
Generating a random number
So far the application has no behavior at all and is limited to displaying some static text. Let's make
it a bit less obvious and add any necessary structure and logic to make it generate and display a
random number.
Search WWH ::




Custom Search