﻿/*
Left Column: body, html, outer, float-wrap, content, left
Right Column: outer, right
Footer: inner, footer

Left Column Image Width = width from #left
Right Column Image Width = width+padL+padR from #right

----------------------------------------------------------------
QUIRKS:		Tested with Netscape 7, FireFox 2, IE 7

Netscape 7 will add the top & bottom margins of inner elements and 
add them to the height of the page. Can't do much about it. Also 
seems to ignore the first * definition unless it is in the web page 
itself as an inline style, which isn't worth the effort. Therefore
margin:0 is repeated where ever it is critical.
----------------------------------------------------------------
*/

* {
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
}
body, html {
	height: 100%;
	background-color:#ffffff;	/* The background color for the content area */
	background-image:url(../images/bgL195W.gif);	/* The left column background "faux" with an image */
	background-position:top left;
	background-repeat: repeat-y;
}
body {
	margin: 0px 0px 0px 0px;
	min-width: 920px; /* Doesn't work in IE */
}
.cBoth {
	clear: both;
}
form {
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
}
input {
	padding: 1px;
}
option {
	padding:1px 4px 1px 4px;
}
textarea {
	padding: 2px;
}
#mainContainer {
	min-height: 100%;
	/*** This is the right column background "faux" with an image.  The 100px is added to have control of where the vertically repeating starts. ***/
	background-image:url(../images/bgR.gif);
	background-position:top right;
	background-repeat:repeat-y;
}
* html #mainContainer {
height: 100%; /*** IE doesn't support min-height, but instead it handles height as min-height so we need to hack the height ***/
}
/**************************
HEADER
**************************/
#header {
padding: 0px;
}
/**************************
CONTENT AND COLUMNS
**************************/
.outer {
padding-left: 195px; /*** Same width as margin-left for the float-wrap div ***/
padding-right: 10px; /*** Our right column width ***/
}
.inner {
width: 100%;
padding-bottom: 45px; /*** Padding-bottom value is the same value as the total height of the footer ***/
}
/*** div.inner is wider than its container, div.outer, and so overlaps to the right, pushing
div.right into the proper position. IE expands div.outer instead, requiring a Tan hack to avoid 
blowing the layout apart. IE gets the original 100% width as in the Livingstone layout.
***/
.float-wrap {
float: left;
width: 100%;
margin-left: -195px; /*** Same length as .outer padding-left but with negative value ***/
}
#content {
float: right;
margin-right: -195px; /*** Same length as .outer padding-left but with negative value ***/
width: 100%;
position: relative; /*** IE needs this  ***/
}
.contentWrap{
padding: 0px;
}

/**************************
LEFT COLUMN
**************************/
/*** div.left is in div.float-wrap, and when div.float-wrap is neg margined to the left, 
div.left is carried over into the proper position. 
***/
#left {
float: left;
width: 195px;
padding: 0px 0px 16px 0px;
position: relative; /*** IE needs this  ***/
}

/*************************
RIGHT COLUMN
**************************/
#right {
float: right; 
width: 2px;
padding: 5px;
position: relative; /*** IE needs this  ***/
margin-right: -10px; /** This negative margin-right value is the same as the right column width (width+padL+padR). ***/
position: relative; /*** IE needs this  ***/
}

/**************************
FOOTER
**************************/
#footer {
height: 70px; /*** The drawback with this solution is that the height of the footer can't have a flexible height. If you add so much content to the footer that it extends 45px, you will get a vertical scrollbar and the content will overflow the footer if you don't set overflow to hidden ***/
margin-top: -70px; /*** By using a negative margin-top we now moves the footer up the same amount as the footer height to avoid vertical scrolling. Remember, if you use borders and padding on your footer you will have to calculate this in your negative margin-top value also. ***/
}
#footer p {
clear: both;
}
