jakeisstoked
Technical User
Ok, I'm new to these all CSS type layouts, and I'm having a real headache trying to get even the most standard things looking right.
This layout looks fine in IE, but in Firefox the div's don't stretch according to the content, like, the containers don't resize the containers they're inside and it looks silly because text 'falls out'. Obviously the content in any of the columns can be anysize and I want them all to stretch evenly to allow for that. Is Firefox buggy with CSS? It's a pain that things work so differently in common browsers.
Thanks,
Jake
This layout looks fine in IE, but in Firefox the div's don't stretch according to the content, like, the containers don't resize the containers they're inside and it looks silly because text 'falls out'. Obviously the content in any of the columns can be anysize and I want them all to stretch evenly to allow for that. Is Firefox buggy with CSS? It's a pain that things work so differently in common browsers.
Thanks,
Jake
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style type="text/css">
body
{
text-align:center;
font-family:arial,helvetica,geneva,sans-serif;
}
#header, #footer, #main, #heaer
{
text-align:center;
margin:auto;
}
#header
{
width:500px;
background:#555555;
padding:0px;
}
#main
{
width:500px;
height:100%;
font-size: 30;
}
#left
{
width:30%;
float:left;
background:#999999;
height:100%;
}
#middle
{
width:40%;
float:left;
background:#EEEEEE;
height:100%;
}
#right
{
width:30%;
float:left;
background:#999999;
height:100%;
}
#footer
{
width:500px;
background:#555555;
clear:both;
height:35px;
}
</style>
</head>
<body>
<div id="header">header</div>
<div id="main">
<div id="left"><p>LEFT</p></div>
<div id="middle">
<p>
Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text
Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text
Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text
Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text
</p>
</div>
<div id="left"><p>RIGHT</p></div>
</div>
<div id="footer">footer</div>
</body>
</html>