@charset "utf-8"; body { margin: 0; text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */ color: #FFFFFF; background-color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 100%; padding-top: 10; padding-right: 0; padding-bottom: 0; padding-left: 0; top: 15px; } .oneColFixCtrHdr #container { width: 780px; /* the auto margins (in conjunction with a width) center the page */ border: 3px solid #FFFFFF; text-align: center; /* this overrides the text-align: center on the body element. */ background-color: #000000; vertical-align: baseline; margin: auto; padding: 0px; } .oneColFixCtrHdr #header { padding: 0 10px 0 20px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */ background-color: #000000; } .oneColFixCtrHdr #header h1 { margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */ padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */ } .oneColFixCtrHdr #mainContent { padding: 0 20px; background-color: #000000; top: 15px; } .oneColFixCtrHdr #footer { padding: 0 10px; background-color: #000000; } .oneColFixCtrHdr #footer p { margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */ padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */ }