HTML and CSS Reference
In-Depth Information
.main {
width: 1020px;
margin: 0 auto 0 auto;
outline: solid 1px red;
background: green;
The last two declarations are only temporary styles, to illustrate a point. Figure 2.5 shows
what happens when those styles are added to the CSS and the page is refreshed.
Figure 2.5. The floated columns cause the container to collapse
Search WWH ::

Custom Search