Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 30th, 2005, 12:33 AM   #1
Obtruse_Man4
Programmer
 
Obtruse_Man4's Avatar
 
Join Date: Sep 2005
Location: PA, USA
Posts: 49
Rep Power: 0 Obtruse_Man4 is on a distinguished road
Force footer to bottom of page

I have a small site I'm constantly working on, and I've recently put a footer on each of the pages. The footer works fine on pages with content, but I have a pics page that only has a couple lines of links. How do I force the footer to the bottom of the page, no matter what screen resolution the client is running?

Here's the examples of what I'm talking about:

http://www.farsideofthegalaxy.com/downloads/
http://www.farsideofthegalaxy.com/pictures/

The downloads page isn't a problem, because you have to scroll down anyway, but if I put the footer in the pics page it will display at different spots on the screen depending on screen resolution. Is there any piece of code that can push something to the bottom of the page? Not too picky on the language. HTML, PHP; doesn't matter.
__________________
"I have many layer-eight problems in my life, including myself."
Obtruse_Man4 is offline   Reply With Quote
Old Oct 30th, 2005, 7:15 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
"Bottom of the page" is strictly a concept. If you don't like where it naturally falls (end of the content), then you have to define it yourself, and devise a way to force things to appear there. Same with paper actually. Legal size, anyone?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 30th, 2005, 11:28 PM   #3
bja888
Hobbyist Programmer
 
bja888's Avatar
 
Join Date: Oct 2005
Location: Central, FL
Posts: 213
Rep Power: 0 bja888 is an unknown quantity at this point
Send a message via AIM to bja888 Send a message via Yahoo to bja888
A few questions to help come up with the best solution.

1) Do you write your own code or use a visual editor?

2) Are you aware you are useing out-dated code? Eventually things like the "<center>" tag will no longer be supported.

The best solution would be to use html 4.01 and put your body into a single layer or table. Then set the height to 100%. Thus the header will be at the top and the footer at the bottom. When the content over flows the page it will push the footer down with it.
bja888 is offline   Reply With Quote
Old Oct 31st, 2005, 12:49 AM   #4
Mocker
Hobbyist Programmer
 
Mocker's Avatar
 
Join Date: Oct 2005
Location: Indiana
Posts: 202
Rep Power: 0 Mocker is an unknown quantity at this point
Send a message via AIM to Mocker
css has an absolute position tag that will push a footer to the bottom (value bottom).. in this case it might be the bottom of the screen, instead of bottom of content. google it, i found several different solutions depending on how you want just by googling the problem. you 'could' do it with php or similar but thats kinda overkill for a layout issue
__________________
#programmingforums relay - http://thegupstudio.com/cgi-bin/pforelay.cgi
freelance scripts - http://ryanguthrie.com/index.html
Mocker is offline   Reply With Quote
Old Oct 31st, 2005, 6:01 AM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
you 'could' do it with php or similar
PHP generates content (usually HTML, often dynamically). How would that differ?

Quote:
Do you write your own code or use a visual editor?
My guess is that almost all sighted coders use a visual editor.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 31st, 2005, 8:39 AM   #6
Lich
Professional Programmer
 
Lich's Avatar
 
Join Date: May 2005
Location: Detroit
Posts: 254
Rep Power: 4 Lich is on a distinguished road
Send a message via AIM to Lich Send a message via MSN to Lich
Quote:
Originally Posted by DaWei
My guess is that almost all sighted coders use a visual editor.
Bryan's just on this trip that anybody who uses something other than notepad is an amateur and doesn't know how to efficiantly code.
__________________
--John Cruz
Web Developer
www.cruzweb.net
Lich is offline   Reply With Quote
Old Oct 31st, 2005, 8:57 AM   #7
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
There are a lot of people that think doing things the hard and inefficient way is the sign of true skill. Professional advancement is problematic for them. One hopes they eventually grow up and get some sense.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 31st, 2005, 9:03 AM   #8
Senger
Programmer
 
Join Date: Oct 2005
Location: Vancouver, Canada
Posts: 47
Rep Power: 0 Senger is on a distinguished road
Visual editors are all very well and good, as long as they don't involve hundreds of lines of automatically generated MS Visual Studio spaghetti code....
__________________
It can be proved that you can watch streaming video on a Turing machine. The question is, why would you want to?
Senger is offline   Reply With Quote
Old Oct 31st, 2005, 10:24 AM   #9
bja888
Hobbyist Programmer
 
bja888's Avatar
 
Join Date: Oct 2005
Location: Central, FL
Posts: 213
Rep Power: 0 bja888 is an unknown quantity at this point
Send a message via AIM to bja888 Send a message via Yahoo to bja888
I'm just asking so I know how to tell him to fix his page....
bja888 is offline   Reply With Quote
Old Oct 31st, 2005, 10:26 AM   #10
Obtruse_Man4
Programmer
 
Obtruse_Man4's Avatar
 
Join Date: Sep 2005
Location: PA, USA
Posts: 49
Rep Power: 0 Obtruse_Man4 is on a distinguished road
I use notepad. I've tried my share of editors, but I can't stand a program adding or shifting around the code I just wrote. The <center> tag is out of date? hmmm, I learned html in 8th grade, maybe I should look at an updated book.
__________________
"I have many layer-eight problems in my life, including myself."
Obtruse_Man4 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:48 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC