Grey
02-02-2008, 03:00 PM
Can I have someon take a look at this css coding and let me know where IM going wrong.. This is a three column simply layout using percentages. In ie it looks geat.. of course.. but in Firefox the righ and left hand columns are askew.. Any help will be appreciated.
Thanks guys
Grey
PS Yes IM still very raw at it but keep trying to improve :)
/* Home Page styles */
body {
background: #C6B895;
text-align: center;
font: normal 10pt verdana,arial,Helvetica,sans-serif;
color: #000000;
border-color: #2C603B;
border-top-color:#21493B;
border-top-style:solid;
border-top-width: .5em;
border-left-color:#21493B;
border-left-style:solid;
border-left-width:.5em;
border-right-color:#21493B;
border-right-style:solid;
border-right-width:.5em;
margin:0;
padding:0em,0em,0em,0em;
}
/* header styles */
#header {
margin: 1em 1em 1em 1em;
font-size: 18px;
font-weight: bold;
font-style: italic;
color: #2E0F55;
}
.header9 {
font-size: 12px;
font-weight: bold;
font-style: italic;
color: #23493C;
}
.header8 {
font-size: 12px;
font-weight: normal;
font-style: italic;
color: #ffffff;
}
.p3 {
font-size: 9px;
font-weight: bold;
font-style: italic;
color: #D0BE17;
}
/* Navbar styles */ /* Background color for the nav bar */
#navbar ul {
margin: 0;
font-size: 10px;
padding: 1em 0em 1em 0em;
list-style-type: none;
text-align: center;
background-color: #21493B;
}
#navbar ul li { display: inline; }
#navbar ul li a {
text-decoration: none;
font-size: 11px;
padding: .2em 1em;
border-style: outset;
border-color: #238D3C;
border-width: 2px;
color: #fff;
background-color: #2C603B;
}
#navbar ul li a.button:visited {
font-size: 14px;
font-weight: bold;
text-decoration: none;
border-style: outset;
border-color: #8DA5F1;
border-width: 3px;
background-color: #21493B;
width: 125px;
}
#navbar ul li a:hover {
color: #000;
border-style: outset;
border-color: #F4F707;
border-width: 2px;
background-color: #EAC032;
}
/* column container */
.colmask {
clear:both;
float:left;
width:100%; /* width of page */
overflow:hidden;
}
/* common column settings */
.colright,
.colmid,
.colleft {
float:left;
width:100%; /* width of page */
position:relative;
}
/* This the ctr main content area*/
.col1 {
float:left;
position:relative;
padding:.5em 0em 0em 0em; /* no left and right padding on columns, we just make them narrower instead/only padding top and bottom is included here */
overflow:hidden;
background-color: #C6B895;
}
/* This the Left col main content area*/
.col2 {
float:left;
position:relative;
padding:.5em 0em 1em 0em; /* no left and right padding on columns, we just make them narrower instead only padding top and bottom is included here */
overflow:hidden;
background-color: #B9AE95;
}
/* This the Right col main content area*/
.col3 {
float:left;
position:relative;
padding:.5em 0em 1em 0em; /* no left and right padding on columns, we just make them narrower instead only padding top and bottom is included here */
overflow:hidden;
background-color: #B9AE95;
}
/* 3 Column settings */
.threecol {
background:#21493B; /* right column background colour */
}
.threecol .colmid {
right:25%; /* width of the right column */
background:#C6B895; /* center column background colour */
}
.threecol .colleft {
right:50%; /* width of the middle column */
background:#21493B; /* left column background colour */
}
.threecol .col1 {
width:46%; /* width of center column content (column width minus padding on either side) */
left:102%; /* 100% plus left padding of center column */
}
.threecol .col2 {
width:21%; /* Width of left column content (column width minus padding on either side) */
left:31%; /* width of (right column) plus (center column left and right padding) plus (left column left padding) */
}
.threecol .col3 {
width:21%; /* Width of right column content (column width minus padding on either side) */
left:85%; /* Please make note of the brackets here:
(100% - left column width) plus (center column left and right padding) plus (left column left and right padding) plus (right column left padding) */
}
ul#navigation {
display: table_cell ;
width: 12em;
margin:auto;
}
ul#navigation li {
list-style: none;
background-color: #000000;
border-style: outset;
border-color: #238D3C;
border-width: 2px;
color: #fff;
text-align: center;
font-size: 11px;
margin: 0;
}
ul#navigation li a {
display: block;
text-decoration: none;
padding: em;
border-bottom: 2px outset #4E9704;
border-right: 2px outset #4E9704;
}
a:link, a:visited { color: #FFFFFF; }
a:hover, a:active { color: #000000; }
a:hover { background-color: #EAC032; }
ul#navigation li#youarehere a { background-color: #000000; }
/* lower nav bar styles */
.navbar2 ul li { display: inline; }
.navbar2 ul li a {
text-decoration: none;
font-size: 9px;
padding: .2em .2em;
border-style: outset;
border-color: #238D3C;
border-width: 2px;
color: #fff;
background-color: #2C603B;
}
.navbar2 ul li a.button:visited {
font-size: 6px;
font-weight: bold;
text-decoration: none;
border-style: outset;
border-color: #8DA5F1;
border-width: 3px;
background-color: #21493B;
width: 115px;
}
.navbar2 ul li a:hover {
color: #000;
border-style: outset;
border-color: #F4F707;
border-width: 2px;
background-color: #EAC032;
}
/* Footer styles */
#footer {
clear:both;
padding:1em 0em 1 em 0em;
background-color: #21493B;
border-style: groove;
border-color: #708090;
}
Thanks guys
Grey
PS Yes IM still very raw at it but keep trying to improve :)
/* Home Page styles */
body {
background: #C6B895;
text-align: center;
font: normal 10pt verdana,arial,Helvetica,sans-serif;
color: #000000;
border-color: #2C603B;
border-top-color:#21493B;
border-top-style:solid;
border-top-width: .5em;
border-left-color:#21493B;
border-left-style:solid;
border-left-width:.5em;
border-right-color:#21493B;
border-right-style:solid;
border-right-width:.5em;
margin:0;
padding:0em,0em,0em,0em;
}
/* header styles */
#header {
margin: 1em 1em 1em 1em;
font-size: 18px;
font-weight: bold;
font-style: italic;
color: #2E0F55;
}
.header9 {
font-size: 12px;
font-weight: bold;
font-style: italic;
color: #23493C;
}
.header8 {
font-size: 12px;
font-weight: normal;
font-style: italic;
color: #ffffff;
}
.p3 {
font-size: 9px;
font-weight: bold;
font-style: italic;
color: #D0BE17;
}
/* Navbar styles */ /* Background color for the nav bar */
#navbar ul {
margin: 0;
font-size: 10px;
padding: 1em 0em 1em 0em;
list-style-type: none;
text-align: center;
background-color: #21493B;
}
#navbar ul li { display: inline; }
#navbar ul li a {
text-decoration: none;
font-size: 11px;
padding: .2em 1em;
border-style: outset;
border-color: #238D3C;
border-width: 2px;
color: #fff;
background-color: #2C603B;
}
#navbar ul li a.button:visited {
font-size: 14px;
font-weight: bold;
text-decoration: none;
border-style: outset;
border-color: #8DA5F1;
border-width: 3px;
background-color: #21493B;
width: 125px;
}
#navbar ul li a:hover {
color: #000;
border-style: outset;
border-color: #F4F707;
border-width: 2px;
background-color: #EAC032;
}
/* column container */
.colmask {
clear:both;
float:left;
width:100%; /* width of page */
overflow:hidden;
}
/* common column settings */
.colright,
.colmid,
.colleft {
float:left;
width:100%; /* width of page */
position:relative;
}
/* This the ctr main content area*/
.col1 {
float:left;
position:relative;
padding:.5em 0em 0em 0em; /* no left and right padding on columns, we just make them narrower instead/only padding top and bottom is included here */
overflow:hidden;
background-color: #C6B895;
}
/* This the Left col main content area*/
.col2 {
float:left;
position:relative;
padding:.5em 0em 1em 0em; /* no left and right padding on columns, we just make them narrower instead only padding top and bottom is included here */
overflow:hidden;
background-color: #B9AE95;
}
/* This the Right col main content area*/
.col3 {
float:left;
position:relative;
padding:.5em 0em 1em 0em; /* no left and right padding on columns, we just make them narrower instead only padding top and bottom is included here */
overflow:hidden;
background-color: #B9AE95;
}
/* 3 Column settings */
.threecol {
background:#21493B; /* right column background colour */
}
.threecol .colmid {
right:25%; /* width of the right column */
background:#C6B895; /* center column background colour */
}
.threecol .colleft {
right:50%; /* width of the middle column */
background:#21493B; /* left column background colour */
}
.threecol .col1 {
width:46%; /* width of center column content (column width minus padding on either side) */
left:102%; /* 100% plus left padding of center column */
}
.threecol .col2 {
width:21%; /* Width of left column content (column width minus padding on either side) */
left:31%; /* width of (right column) plus (center column left and right padding) plus (left column left padding) */
}
.threecol .col3 {
width:21%; /* Width of right column content (column width minus padding on either side) */
left:85%; /* Please make note of the brackets here:
(100% - left column width) plus (center column left and right padding) plus (left column left and right padding) plus (right column left padding) */
}
ul#navigation {
display: table_cell ;
width: 12em;
margin:auto;
}
ul#navigation li {
list-style: none;
background-color: #000000;
border-style: outset;
border-color: #238D3C;
border-width: 2px;
color: #fff;
text-align: center;
font-size: 11px;
margin: 0;
}
ul#navigation li a {
display: block;
text-decoration: none;
padding: em;
border-bottom: 2px outset #4E9704;
border-right: 2px outset #4E9704;
}
a:link, a:visited { color: #FFFFFF; }
a:hover, a:active { color: #000000; }
a:hover { background-color: #EAC032; }
ul#navigation li#youarehere a { background-color: #000000; }
/* lower nav bar styles */
.navbar2 ul li { display: inline; }
.navbar2 ul li a {
text-decoration: none;
font-size: 9px;
padding: .2em .2em;
border-style: outset;
border-color: #238D3C;
border-width: 2px;
color: #fff;
background-color: #2C603B;
}
.navbar2 ul li a.button:visited {
font-size: 6px;
font-weight: bold;
text-decoration: none;
border-style: outset;
border-color: #8DA5F1;
border-width: 3px;
background-color: #21493B;
width: 115px;
}
.navbar2 ul li a:hover {
color: #000;
border-style: outset;
border-color: #F4F707;
border-width: 2px;
background-color: #EAC032;
}
/* Footer styles */
#footer {
clear:both;
padding:1em 0em 1 em 0em;
background-color: #21493B;
border-style: groove;
border-color: #708090;
}