Ето кода
[css]html, body{
height:100%;
}
#wrapper{
min-height:100%;
height:auto !important;
height:100%;
margin-bottom:-125px;
}
header{
background-color:red;
}
#cont{
height:900px;
}
#te{
margin-left: auto;
margin-right:auto;
width:auto;
max-width:1024px;
background:blue;
}
#promo{
float:left;
width:756px;
height:200px;
backgroundrange;
}
#ads{
float:left;
width:250px;
height:200px;
background:red;
}
#left{
float:left;
width:300px;
height:900px;
background:black;
}
footer, #push{
height:125px;
}
footer{
background:green;
bottom:0;
}
[/css]
Проблема е следният фотера не седи най-отдолу.
HTML:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="txt/css" href="style1.css">
</head>
<body>
<div id="wrapper">
<header>
<h1>test</h1>
</header>
<div id="cont">
<div id="te">
<div id="left">
<p>left</p>
</div>
</div>
<div id="push"></div>
</div>
</div>
<footer>
<p>gggg</p>
</footer>
[css]html, body{
height:100%;
}
#wrapper{
min-height:100%;
height:auto !important;
height:100%;
margin-bottom:-125px;
}
header{
background-color:red;
}
#cont{
height:900px;
}
#te{
margin-left: auto;
margin-right:auto;
width:auto;
max-width:1024px;
background:blue;
}
#promo{
float:left;
width:756px;
height:200px;
backgroundrange;
}
#ads{
float:left;
width:250px;
height:200px;
background:red;
}
#left{
float:left;
width:300px;
height:900px;
background:black;
}
footer, #push{
height:125px;
}
footer{
background:green;
bottom:0;
}
[/css]
Проблема е следният фотера не седи най-отдолу.