css - How to position the div at the bottom of the window? -


for division place @ top or somewhere in window give relative margin it. there way set div @ bottom, above footer? give explanation question: have footer.
have div height = 200px
have div height = 400px
want place them in window, such should like, placed on footer. how can that? thank you

your main content should this:

.wrapper {    min-height: 100%;    height: auto !important;    height: 100%;    margin: 0 auto -40em; /* -40em should adjusted page, play around */ } 

then goes div heitgh200, div height400 , footer.

here full working example:

http://jsfiddle.net/bn72w/1/

here tutorial on sticky footers: http://ryanfait.com/resources/footer-stick-to-bottom-of-page/


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -