Ember~Daze
01-31-2004, 11:20 PM
Hello,
I've been searching like mad to find an answer to my problem, and unfortunately have had no luck. If anyone can shed some light onto this gloomy beginner coder I would be ever grateful. Here's my problem.
To learn CSS I'm trying to make a simple 3 column layout with a header spanning across the entire top. I've also made it to be centered at all times. In IE everything seems to be alright but in Netscape 7.0 I run into a couple annoying errors.
One, the top banner lines up nicely on the left but seems to be a few pixels to large on the right side even though my settings are all evened out.
Two, the center column runs to far down, passing the left/right columns, leaving blank spaces even though the height is set to 100% for all three.
Here's my code...
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!--Beginning of all CSS Related Definitons----------------------------->
<style type="text/css">
<!--
BODY {
margin: 0px;
background-color: #000000;
color: #FFFFFF;
font-family: Arial;
}
#Container {
position: absolute;
top: 0;
left: 50%;
height: 100%;
margin-left: -380px;
}
#LeftColumn {
float: left;
width: 150px;
height: 100%;
background-color: #000066;
border: #0066FF groove;
border-width: 0px 0px 0px 2px;
}
#CenterColumn {
position: absolute;
top: 151px;
left: 150px;
width: 480px;
height: 100%;
background-color: #000000;
border: #0066FF groove;
border-width: 2px 2px 0px 2px;
padding: 15px;
font: 10pt;
}
#RightColumn {
float: right;
width: 150px;
height: 100%;
background-color: #000066;
border-color: #0066FF;
border-width: 0px 2px 0px 0px;
border-style: groove;
}
#Top {
width: 778px;
height: 150px;
background-color: #000066;
border-color: #0066FF;
border-width: 2px 2px 0px 2px;
border-style: groove;
font-weight: bold;
font-size: 20pt;
text-align: center;
}
-->
</style>
<!--End of all CSS Related Definitions---------------------------------->
</head>
<DIV>
<DIV id="Container">
<DIV id="Top"></DIV>
<DIV id="LeftColumn"></DIV>
<DIV id="CenterColumn"></DIV>
<DIV id="RightColumn"></DIV>
</DIV>
</body>
</html>
I also have another quick question I'm sure can be easily answered. And that is, what is the difference between static and liquid CSS? Is it the difference between absolute pixel/unit positioning and positioning based on the natural flow of the page?
Thanks so much for any help. Even a pointer to an article or something would be awesome! :)
- Ember~Daze
I've been searching like mad to find an answer to my problem, and unfortunately have had no luck. If anyone can shed some light onto this gloomy beginner coder I would be ever grateful. Here's my problem.
To learn CSS I'm trying to make a simple 3 column layout with a header spanning across the entire top. I've also made it to be centered at all times. In IE everything seems to be alright but in Netscape 7.0 I run into a couple annoying errors.
One, the top banner lines up nicely on the left but seems to be a few pixels to large on the right side even though my settings are all evened out.
Two, the center column runs to far down, passing the left/right columns, leaving blank spaces even though the height is set to 100% for all three.
Here's my code...
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!--Beginning of all CSS Related Definitons----------------------------->
<style type="text/css">
<!--
BODY {
margin: 0px;
background-color: #000000;
color: #FFFFFF;
font-family: Arial;
}
#Container {
position: absolute;
top: 0;
left: 50%;
height: 100%;
margin-left: -380px;
}
#LeftColumn {
float: left;
width: 150px;
height: 100%;
background-color: #000066;
border: #0066FF groove;
border-width: 0px 0px 0px 2px;
}
#CenterColumn {
position: absolute;
top: 151px;
left: 150px;
width: 480px;
height: 100%;
background-color: #000000;
border: #0066FF groove;
border-width: 2px 2px 0px 2px;
padding: 15px;
font: 10pt;
}
#RightColumn {
float: right;
width: 150px;
height: 100%;
background-color: #000066;
border-color: #0066FF;
border-width: 0px 2px 0px 0px;
border-style: groove;
}
#Top {
width: 778px;
height: 150px;
background-color: #000066;
border-color: #0066FF;
border-width: 2px 2px 0px 2px;
border-style: groove;
font-weight: bold;
font-size: 20pt;
text-align: center;
}
-->
</style>
<!--End of all CSS Related Definitions---------------------------------->
</head>
<DIV>
<DIV id="Container">
<DIV id="Top"></DIV>
<DIV id="LeftColumn"></DIV>
<DIV id="CenterColumn"></DIV>
<DIV id="RightColumn"></DIV>
</DIV>
</body>
</html>
I also have another quick question I'm sure can be easily answered. And that is, what is the difference between static and liquid CSS? Is it the difference between absolute pixel/unit positioning and positioning based on the natural flow of the page?
Thanks so much for any help. Even a pointer to an article or something would be awesome! :)
- Ember~Daze