L
leo
Toby Inkster said:width: 740px;
margin-left: auto;
margin-right: auto;
Or even better:
width: auto;
margin-left: 2em;
margin-right: 2em;
I am about to give up. The following CSS is pretty close to what I want.
There are some other problems but one major issue is: - in the ARTICLE
section, I want to have some space between the border and the text. Although
Dreamweaver's editor shows that there's a gap but IE and Opera both showing
no whitespace around the border.
..header {
width: 640px;
font-weight: bold;
height: 36px;
margin-right: auto;
margin-left: auto;
text-align: right;
}
..footer {
height: 36px;
vertical-align: text-bottom;
font-family: "Courier New", Courier, mono;
font-size: smaller;
color: #00FFFF;
margin-right: auto;
margin-left: auto;
}
..article {
width: 640px;
border: thin dotted #0000FF;
padding: 16;
text-align: left;
background-color: #FFFF00;
margin-right: auto;
margin-left: auto;
margin: 16;
}