﻿/* Source http://www.tanfa.co.uk/css/layouts/ */

html, body
{
	margin: 0;
	padding: 0;
	height: 100%; 
	font-family: helvetica, verdana, arial, sans-serif;
	font-size: 100%;
	text-align: center;
	background-color: black;
}

#wrapper
{
	position: relative;
	height: 100%;
	margin: 0 auto;
	border: 0px;
	background: #000000; /* light grey */
	min-height: 40%; /* optional */
	text-align: left;
	min-width: 600px; /* to allow room for images and long words */
}

/* ie hack  - layout REQUIRES a height here to work */
/* (1% will do) if no min-height is required*/
/* this it where it fails in Strict Mode */
* html #wrapper {height: 99%;} 

#header, #footer
{
	position: relative;
	margin: 0px;
	background: #ffc; /* pale yellow */
	border: 1px solid #000;
	min-width: 600px; /* to match wrapper div */
	border-right: 0px;
	border-top: 0px;
	border-left: 0px;
	border-bottom: 0px;
	padding-bottom: 5px;
}

#apbg1 { 
position: absolute;
top: 0;
bottom: 0; /* Opera needs this! Moz would automatically assume this as default*/
border-width: 0px; /* widths below */
border-style: none;
left: 0;
width: 125px;
background-position: 0% 0%;
background-image: url(left.jpg);
border-right-width: 0px;
background-repeat: no-repeat;
/*height: 100%; */ /* hacked in for IE below */
}

#apbg2 { 
position: absolute;
top: 0;
bottom: 0; /* Opera needs this! Moz would automatically assume this as default*/
border-width: 0px; /* widths below */
border-style: none;
right: 0;
width: 92px;
border-left-width: 0px;
background-position: 0% 0%;
background-image: url(right.jpg);
background-repeat: no-repeat;
/*height: 100%; */ /* hacked in for IE below */
}

* html #apbg1, * html #apbg2 
{height: 100%; /* required by IE to inherit from wrapper (IE Hack) above*/}

/* #apbg1 p {background: #b0c4de; height: 50%;}/* height to show inheritance */
/* #apbg2 p {background: #ddd; margin: 5px;} */


/* bringing the center content into position (clear the sides)
is best using a wrapper div to avoid more IE Box Model issues */
#contentwrap
{
	position: relative;
	padding-right: 92px;
	padding-left: 125px;
}

#content
{
	position: relative; /* to enable further positioned divs inside content area */
	z-index: 100; /* to make sure if long words overflow they show above the right column */
	border-left: 0px;
	border-right: 0px;
	background: black;
	padding: 0;
	margin: 0;
	border-left: 0px;
	border-top-style: none;
	border-bottom-style: none;
	text-align:center;
}

/* IE/Win Hack for peekaboo bug */
/* hide from IE/Mac \*/
* html #content {height: 1%;} 
/* end hide */

/***** General formatting ****/
a {font-weight: bold;}
img {border-style: none;}
a:hover {text-decoration: none; color: #000; background: #eee;}
code {font-family: "Courier New", monospace;} 

h1, h2, h3, h4 {margin: 0; padding: 10px; position: relative; z-index: 5;}
h1, h2, h3, h4 {margin: 0; padding: 10px;}
h1 {
	font-size: 12px;
	color: #FFF;
	text-align: left;
	padding: 0;
}
h2 {
	font-size: 12px;
	padding: 0;
	color: #CCC;
}
h3 {
	font-size: 12px;
	color: #CCC;
	text-align: center;
	padding: 0;
}
h4 {padding-bottom: 0; padding-right: 15px;}

#fixed {
   margin:0 auto;
   width:1022px;   /* you can use px, em or % */
   text-align:left;
   height:100%;
}
