iheartny
06-21-2008, 02:50 AM
I've been having problems aligning my content/layout in the center. It looks fine in Mozilla and as well as Safari, but it's I.E that won't do the job. ;) This is a CSS problem. I'm just no genius when it comes to centering sites.
#header = the layout image
#content = body content
#navigation = the side content (2nd column)
Here's my style sheet that I'm using:
body
{font-family: Verdana;
font-size:8pt;
text-align: justify;
width: 900px;
margin:auto;
background-color:#ffffff;
background-image:url('images/midbg.png');
background-repeat:repeat-y;
background-position:center;
color:#494949;}
#header
{height:239px;
width:900px;
position:absolute;}
#content{
position:absolute;
top: 230px;
width: 520px;
margin-left: 40px;}
#navigation
{position:absolute;
top: 230px;
width: 290px;
margin-left: 570px;}
A:link {font-size: 8pt;
font-weight:normal;
color: #66821A;
text-decoration:none;}
A:visited {font-size: 8pt;
font-weight:normal;
color: #66821A;
text-decoration:none;}
A:active {font-size: 8pt;
font-weight:normal;
color: #66821A;
text-decoration:none;}
A:hover {font-size: 8pt;
font-weight:normal;
color: #616161;
text-decoration:underline;}
.side-title
{background-color:transparent;
color: #E86759;
font-family: Verdana;
font-size: 12pt;
line-height:12pt;
text-align:left;
font-weight: bold;
letter-spacing:2px;
margin-top: 2px;
margin-bottom: 2px;
margin-left: 0px;
margin-right: 2px;
padding: 0px;}
.body-title
{background-color:transparent;
color: #38B0B7;
font-family: Verdana;
font-size: 12pt;
line-height:12pt;
text-align:left;
font-weight: bold;
letter-spacing:2px;
margin-top: 2px;
margin-bottom: 2px;
margin-left: 0px;
margin-right: 2px;
padding: 0px;}
tr, table, td
{text-align:justify;
font-family: Verdana;
color:#4C4C4C;
spacing:0px;
margin:0px;
padding:0px;
font-size: 12px;
font-weight:normal;
letter-spacing:0px;}
.smallspace
{clear: both;
height:5px;
overflow:hidden;}
.mediumspace
{clear: both;
height:12px;
overflow:hidden;}
.largespace
{clear: both;
height:20px;
overflow:hidden;}
b {color: #FF7364;}
i {color: #39C3CB;}
u {color: #A1C440;}
Please ask me for the site's url if you need to see the site.
#header = the layout image
#content = body content
#navigation = the side content (2nd column)
Here's my style sheet that I'm using:
body
{font-family: Verdana;
font-size:8pt;
text-align: justify;
width: 900px;
margin:auto;
background-color:#ffffff;
background-image:url('images/midbg.png');
background-repeat:repeat-y;
background-position:center;
color:#494949;}
#header
{height:239px;
width:900px;
position:absolute;}
#content{
position:absolute;
top: 230px;
width: 520px;
margin-left: 40px;}
#navigation
{position:absolute;
top: 230px;
width: 290px;
margin-left: 570px;}
A:link {font-size: 8pt;
font-weight:normal;
color: #66821A;
text-decoration:none;}
A:visited {font-size: 8pt;
font-weight:normal;
color: #66821A;
text-decoration:none;}
A:active {font-size: 8pt;
font-weight:normal;
color: #66821A;
text-decoration:none;}
A:hover {font-size: 8pt;
font-weight:normal;
color: #616161;
text-decoration:underline;}
.side-title
{background-color:transparent;
color: #E86759;
font-family: Verdana;
font-size: 12pt;
line-height:12pt;
text-align:left;
font-weight: bold;
letter-spacing:2px;
margin-top: 2px;
margin-bottom: 2px;
margin-left: 0px;
margin-right: 2px;
padding: 0px;}
.body-title
{background-color:transparent;
color: #38B0B7;
font-family: Verdana;
font-size: 12pt;
line-height:12pt;
text-align:left;
font-weight: bold;
letter-spacing:2px;
margin-top: 2px;
margin-bottom: 2px;
margin-left: 0px;
margin-right: 2px;
padding: 0px;}
tr, table, td
{text-align:justify;
font-family: Verdana;
color:#4C4C4C;
spacing:0px;
margin:0px;
padding:0px;
font-size: 12px;
font-weight:normal;
letter-spacing:0px;}
.smallspace
{clear: both;
height:5px;
overflow:hidden;}
.mediumspace
{clear: both;
height:12px;
overflow:hidden;}
.largespace
{clear: both;
height:20px;
overflow:hidden;}
b {color: #FF7364;}
i {color: #39C3CB;}
u {color: #A1C440;}
Please ask me for the site's url if you need to see the site.