body { background: url('bg_less.jpg'); background-attachment: fixed; 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; } .thrColFixHdr #container { width: 1000px; background: url('bg_main.jpg'); background-attachment: fixed; background-position: top; background-repeat: no-repeat; margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ border-color: #000066; border-style: solid; border-width: 2px; text-align: left; /* this overrides the text-align: center on the body element. */ } .thrColFixHdr #header { padding: 14px 20px 20px 14px; line-height: 2.0; } .hdrpic { border-color: #000066; border-style: solid; border-width: 2px; border-width: 3px; padding: 2px; } .thrColFixHdr #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 */ } .thrColFixHdr #sidebar1 { float: left; /* since this element is floated, a width must be given */ width: 160px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */ /* background: #EBEBEB; */ padding: 15px 10px 15px 20px; /* padding keeps the content of the div away from the edges */ } #sidebar1 a {font-size: small;} #sidebar1 li { font-size: small; padding-bottom: 5px; } .thrColFixHdr #sidebar2 { float: right; /* since this element is floated, a width must be given */ width: 160px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */ /* background: #EBEBEB; */ padding: 15px 10px 15px 20px; /* padding keeps the content of the div away from the edges */ } .thrColFixHdr #mainContent { margin: 0 200px; /* the right and left margins on this div element creates the two outer columns on the sides of the page. No matter how much content the sidebar divs contain, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the sidebar spaces when the content in each sidebar ends. */ padding: 0 10px; /* remember that padding is the space inside the div box and margin is the space outside the div box */ background: none; height: 400px; height: auto; } .thrColFixHdr #footer { padding: 0 10px 0 20px; /* this padding matches the left alignment of the elements in the divs that appear above it. */ /* background:#DDDDDD; */ } .thrColFixHdr #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 */ } .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */ float: right; margin-left: 8px; } .fltlft { /* this class can be used to float an element left in your page */ float: left; margin-right: 8px; } .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */ clear:both; height:0; font-size: 1px; line-height: 0px; }