http://5.kilssbosses.myjino.ru/
[HTML]<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>3 Колонки</title>
<link href="css/common.css" rel="stylesheet" type="text/css">
<!--[if IE 6]>
<link href="css/ie.css" rel="stylesheet" type="text/css">
<![endif]-->
</head>
<body>
<div id="container">
<div id="main">
<div id="all">
<div id="left">left
left
left
left
left
left
left
left
left
left end</div>
<div id="right">right
right
right
right
right
right
right end</div>
<div id="center">center center center center center center center center center center center center center center center center</div>
</div>
</div>
<div id="footer"></div>
</div>
</body>
</html>
[/HTML]
Для всех браузеров
Код: Выделить всё
html{
height:100%;
}
body{
height:100%;
margin:0;
}
#container{
min-width:800px;
max-width:1000px;
margin:auto;
}
#main{
background:#ccf ;
min-height:100%;
margin:0 0 -100px;
}
#all{
overflow:hidden;
padding:0 0 100px;
}
#left{
float:left;
width:200px;
background:#f60;
}
#right{
float:right;
width:200px;
background:#f60;
}
#center{
background:#2D1DB8;
margin:0 200px;
}
#footer{
background:#FF0004;
height:100px;
margin:auto;
}
Код: Выделить всё
*html #main{
height:100%;
}
*html #container{
width:expression{
(document.documentElement.clientWidth || document.body.clientWidth) < 800? '800px':
(document.documentElement.clientWidth || document.body.clientWidth) > 1000? '1000px': 'auto' );
}
*html #all{
width:100%;
}