![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Sep 2005
Location: PA, USA
Posts: 49
Rep Power: 0
![]() |
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." |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
"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 |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
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. |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
|
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 |
|
|
|
|
|
#5 | ||
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Quote:
Quote:
__________________
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 |
||
|
|
|
|
|
#6 | |
|
Professional Programmer
|
Quote:
|
|
|
|
|
|
|
#7 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#8 |
|
Programmer
Join Date: Oct 2005
Location: Vancouver, Canada
Posts: 47
Rep Power: 0
![]() |
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? |
|
|
|
|
|
#9 |
|
Hobbyist Programmer
|
I'm just asking so I know how to tell him to fix his page....
|
|
|
|
|
|
#10 |
|
Programmer
Join Date: Sep 2005
Location: PA, USA
Posts: 49
Rep Power: 0
![]() |
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." |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|