Див в долната част на страницата...

BaHKaTa

Registered
знам че ще да е с някакъв ЦСС код...
Имам див за футър но не мога да го залепя за долната част на страницата...Помогнете моля.
 
Опита ли с margin-bottom, или padding-bottom , но в случая мисля че margin-bottom: ПИКСЕЛИТЕ px; Ще ти сварши работата.
 
Код:
<style ....>
.footer {
position: absolute;
bottom: 0; 
width: 100%;
height: 20px;
background-color: red;
}
</style>
......

<div class="footer">bottom</div>
 
Galli каза:
Код:
<style ....>
.footer {
position: absolute;
bottom: 0; 
width: 100%;
height: 20px;
background-color: red;
}
</style>
......

<div class="footer">bottom</div>

.footer {
position: absolute;
bottom: 0px;
left:0px;

width: 100%;
height: 20px;
background-color: red;
}

body { position:relative;}
 

Back
Горе