Salut,
Uite o solutie:
Cod HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ro" lang="ro">
<head>
<title>Layout 3 coloane</title>
</head>
<style type="text/css">
body {
margin: 0;
padding: 0;
}
div#rama {
width: 760px;
margin: 0 auto;
position: relative
}
div#main {
width: 760px;
background-color: #000000;
top: 110px;
position: absolute;
padding: 4px 0;
}
div#header {
position: absolute;
top: 5px;
width: 760px;
height: 100px;
background-color: orange;
}
div#content {
width: 400px;
float: left;
background-color: yellow;
height: 400px;
}
div#dreapta {
width: 180px;
float: right;
background-color: blue;
height: 400px;
}
div#stanga {
width: 180px;
float: left;
background-color: lime;
height: 400px;
clear: none;
}
</style>
<body>
<div id="rama">
<div id="main">
<div id="stanga">
Stanga
</div>
<div id="content">
Content
</div>
<div id="dreapta">
Dreapta
</div>
</div>
<div id="header">
HEADER
</div>
</div>
<div id="footer"></div>
</body>
</html>
In acest moment #header e sub #main. Dat fiind faptul ca tu ai trei coloane mai tre` un workaround sa pun #content inainte de #stanga, dar asta mai pe seara. Spor.