@charset "utf-8"; body { font: 100% Verdana, Arial, Helvetica, sans-serif; background: #6a0312; margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */ padding: 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: #000000; background-image:url(body-bg-cherry.jpg); background-repeat:repeat-x; } h1 { font-family:Georgia, "Times New Roman", Times, serif; color:#000066; text-align:center; } h2 { font-family:"Times New Roman", Times, serif; color:#000066; text-align:center; } table { width:95%; margin:0px; padding:0px; } tr { margin:0; padding:0; } .oneColFixCtrHdr #container { width: 780px; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */ background: #FFFFFF; margin: 10px auto; border: 1px solid #000000; text-align: left; } .oneColFixCtrHdr #header { background: #fff; padding: 0px 10px 0 20px; background-image:url(QS_logo.jpg); background-repeat:no-repeat; background-position:center; background-position:top; } .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 10px; /* using padding instead of margin will allow you to keep the element away from the edges of the div */ } .oneColFixCtrHdr #mainContent { padding: 20px 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */ background: #FFFFFF; } .oneColFixCtrHdr #footer { padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear above it. */ background:#DDDDDD; } .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 */ }