|
Giomanach -> 3 Column CSS layout sorted!!!! (6/21/2004 15:50:31)
|
HOORAH!!!!!! I finally found the answer... Deb, your gonna be so proud of me lol. Haven't tested in Netscape, but it works in IE, Firefox and Opera, so I am assuming it works in Netscape. Here's the stylesheet: body{
margin: 0;
font-size: 12px;
font-family: Verdana, Tahoma, Arial, Sans-serif;
background: #FFFFFF;
}
a{
text-decoration: none;
font-weight: bold;
color: #000000;
}
a:hover{
text-decoration: underline;
}
#title{
position: absolute;
width: 100%;
height: 70px;
left: 2px;
font-size: 48px;
font-weight: bold;
font-style: italic;
background: #EFEFEF;
}
#titleshadow{
position: absolute;
width: 100%;
top: 2px;
left: 4px;
font-size: 48px;
font-weight: bold;
font-style: italic;
color: #CCCCCC;
}
#slogan{
position: absolute;
top: 50px;
left: 60px;
font-size: 13px;
}
#nav{
position: absolute;
top: 70px;
width: 100%;
verticaL-aling: middle;
text-align: center;
font-size: 14px;
border-top: 1px solid #CFCFCF;
border-bottom: 1px solid #CFCFCF;
background: #EEEEEE;
left: 0px;
}
#nav a{
padding-left: 5px;
padding-right: 5px;
text-decoration: none;
}
#services{
position: absolute;
top: 90px;
width: 130px;
}
.copyright{
font-size: 10px;
font-weight: bold;
}
#content{
position: absolute;
top: 95px;
left: 140px;
right: 140px;
}
legend{
font-size: 12px;
font-weight: bold;
}
.red{
color: #FF0000;
}
.title{
font-size: 24px;
padding: 0;
font-weight: bold;
}
#links{
position: absolute;
right: 0px;
top: 95px;
width: 135px;
}
fieldset{
font-size: 10px;
} Where was I going wrong all this time? Here's your answer: You Don't Set A Width For The Middle Column You just tell it how far from the left, and how far from the right or the browser edge, and it works fine. You only need to set a width for the two outer columns, and then define how far from the left and right the middle column needs to sit. Working Example: http://www.giomanach.com/anti-spam [:D][:D] Dan <edit> Please note - Working Example is a site under construction... </edit>
|
|
|
|