HTML and CSS Reference
In-Depth Information
Monoplate
content container is 1000 pixels wide, so
limit the container to that size, 1000px.
Define the content container in
style.css
1
div.container {
margin:0 auto;
/* makes the content centered */
width:1000px;
}
The
#top
,
#header
,
#page
backgrounds are at 100%
width, outside the 1000px limit, meaning that those
backgrounds will stretch from left to right in the
browser's window, regardless of inner content you
have (
see the previous image
).
Go for a
div
with class to call it several times within
the document. An ID
div
can be called only once in
the HTML page.