|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Big grins
|
Keep footer on bottom of page with java?
Dont know if this is possible but Ill throw it out there. Is there anyway to use java to keep a custom footer on the bottom of the screen using the following method.
If the screen has no scrollbar then #myfooter position would be fixed to the bottom If the screen has a scrollbar then #myfooter position would not be fixed as it would automaticly place itself on the bottom of the window I have been working on this issue for a while so I thought I would ask. |
|
|
|
|
#2
|
|
|
Big grins
|
Bump
|
|
|
|
|
#3
|
|
|
Smug Hero
|
Why do you need to use Java for this?
Couldn't you just use the position: fixed; CSS to attach the footer to the bottom of the browser window? Something like: #myfooter { position: fixed; left: 10px; bottom: 10px; } That should display it in the bottom left corner of the page always. Scroll bar or not. |
|
|
|
|
#4
|
|
|
Big grins
|
Because some of my pages scroll and some don't. If I use the code you have suggested my footer would be overlayed on images on some pages and thats not what im looking for.
|
|
|
|
|
#5
|
|
|
Smug Hero
|
But wouldn't what you detailed out do the same thing in the case where a page has a scroll bar?
|
|
|
|
|
#6
|
|
|
Big grins
|
Maybe I'm not explaining myself. If you look on my homepage www.Nkerleyproofs.com depending on your screen resolution my footer is floating half way up the page. If you look at any other page that has a scroll bar the footer is forced to the bottom of the page. I'm really only looking for code to force a fixed footer position if their is no scroll bar present.
|
|
|
|
| Tell The World! | |
| Similar Threads | Thread Starter | Forum | Replies | Last Post | ![]() |
| How to keep the footer at the bottom? | insanefred | SmugMug Customization | 3 | Apr-20-2011 03:25 PM | |
| Re: Adjusting Top & Bottom Page View Space | Papparazzi | SmugMug Customization | 4 | Dec-10-2010 12:35 PM | |
| Custom Footer locking up my page in thumbnails | ASF | SmugMug Customization | 0 | Dec-02-2010 11:47 AM | |
| How to have a footer only appear on the Galleries page | ghealy | SmugMug Customization | 3 | Jul-19-2010 06:22 AM | |
| Make the Footer Stick to the Bottom of a Page | GollyJer | SmugMug Customization | 4 | Dec-15-2009 08:33 AM | |
| Thread Tools | |
| Display Modes | |
|
|