How can I anchor (using CSS or HTML) a division to the bottom of a page? If the content displayed on the page is less than the whole page length then I want the footer text/image to show at the bottom of the screen and not right below the content.
This is virtually impossible without JavaScript, because you need to determine the height of the browser window of the user. Search the posts here, it was discussed ad nauseum.
this will keep a div at the bottom of the viewport (browser window). However if the content is longer than the window it will still be at the bottom of the viewport not at the bottom of the content.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.