Hi
Goal is simple, fixed layout that spans a fixed, centered width, and full 100% height of browser. The code here works in IE but not Firefox, why? The column container column should be centered. What is the problem?![[hairpull] [hairpull] [hairpull]](/data/assets/smilies/hairpull.gif)
Thanks,
RR
Goal is simple, fixed layout that spans a fixed, centered width, and full 100% height of browser. The code here works in IE but not Firefox, why? The column container column should be centered. What is the problem?
![[hairpull] [hairpull] [hairpull]](/data/assets/smilies/hairpull.gif)
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body{
text-align: center;
}
html, body {
height: 100%;
background-color:#333333;
margin:0;
}
#container { /* div you want to stretch */
min-height: 100%;
background-color:#CCCCCC;
width:770px;
}
#container {
height: 100%;
}
</style>
</head>
<body>
<div id="container">
test
</div>
</body>
</html>
Thanks,
RR