HTML/CSS make div snap to the windows's bottom -


i've div:

<style> #asd{     height:auto; width:1024px; margin-left:auto; margin-right:auto; background-color:#093; }  </style> 

i want div's bottom reach down window's bottom, whatever window's current size is.

what tried far adding #asd's css, without expected results: margin-bottom:0px; or height:100%; or bottom:0px;

any advice?

add

position:absolute; bottom:0; 

to class...

#asd{   height:auto;   width:1024px;   margin-left:auto;   margin-right:auto;   background-color:#093;   position:absolute;   bottom:0; } 

Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -