NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Making a footer stick to the bottom

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-25-2006, 08:20 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Mar 2006
Posts: 22
bob_visualefx is an unknown quantity at this point
 



Making a footer stick to the bottom


Hi All,
I'm trying to get CSS to make my footer stick to the bottom of the page. I've found some CSS help online and have been testing it, but it seems to be just sticking to the bottom of the browser window and not the page. At least in some browsers. Some it works fine, others it doesn't. Here is the page: LINK Any advice? Any help would be great. Thanks!
__________________
-Bob
bob_visualefx is offline  
Old 05-25-2006, 10:59 AM   #2 (permalink)
A Wealth of Knowledge
 
stscac's Avatar
Join Date: Aug 2004
Posts: 3,809
stscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud of
 



Code:
#footer {
position:fixed;
}
That should do the trick.

-Steve
stscac is offline  
Old 05-25-2006, 11:26 AM THREAD STARTER               #3 (permalink)
New Member
Join Date: Mar 2006
Posts: 22
bob_visualefx is an unknown quantity at this point
 



Hmm, I tried that but it seems to just make it stick to the bottom of the window and not the content.
__________________
-Bob
bob_visualefx is offline  
Old 05-25-2006, 03:06 PM   #4 (permalink)
A Wealth of Knowledge
 
stscac's Avatar
Join Date: Aug 2004
Posts: 3,809
stscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud of
 



My impression is that you wanted it to stick to the bottom of the window, much like that of Script.aculo.us. In this case you are going to want to make your footer div relative to where it is in the page. You would set your css up like this.
Code:
#footer {
position:relative;
//other characteristics from css can go here
}
Hope that helps.

-Steve
stscac is offline  
Old 05-26-2006, 07:35 AM THREAD STARTER               #5 (permalink)
New Member
Join Date: Mar 2006
Posts: 22
bob_visualefx is an unknown quantity at this point
 



I got it going with a clear:both attribute. Thanks for your advice. I appreciate it.
__________________
-Bob
bob_visualefx is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:28 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger