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 - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -