File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 30057
    
149

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 ?
 
 
subject: How to align the footer in HTML
 
Similar Threads
DIV shrinks to fit its content
not sure why my html/css is doing this (pic inside)
Problem in setting footer when content extends page length
how to use javascript to download the file automatically?
issue with scope of a form bean