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:
here tutorial on sticky footers: http://ryanfait.com/resources/footer-stick-to-bottom-of-page/
Comments
Post a Comment