wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes How to align the footer in HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to align the footer in HTML" Watch "How to align the footer in HTML" New topic
Author

How to align the footer in HTML

gavin sharma
Greenhorn

Joined: Sep 30, 2013
Posts: 12
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

Gavin,
This works. I had to remove the position absolute in order to add the centering CSS. You can see a working example of the centering with this fiddle



[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
gavin sharma
Greenhorn

Joined: Sep 30, 2013
Posts: 12
using this code makes text align at the center but it doesnt stick at the bottom of the page.. how to do that ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to align the footer in HTML
 
Similar Threads
issue with scope of a form bean
DIV shrinks to fit its content
how to use javascript to download the file automatically?
not sure why my html/css is doing this (pic inside)
Problem in setting footer when content extends page length