473,395 Members | 2,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

position to bottom of screen if short, text if long

Hey Folks:

I'm probably dreaming here, but perhaps there's a way...

I just gave a presentation. It's in XHTML and uses CSS for making things
look nice. Right now there's a small navigation system on top and the
main text area. The presentation is about to be put on the web, so I'd
like to add a footer on each page with the presentation name and a link
back to the main site.

The quest here is:

1) On pages where the main text doesn't fill the whole screen, put the
footer at the bottom of the browser window.

2) But, on pages where the main text is long enough to scroll down below
the bottom of the window, to place the footer below the bottom of the
text.
Doing something like this:

div.bottom {
position: absolute;
bottom: 0;
}

works fine for short pages, but on longer pages, the footer winds up
covering the main text at the bottom of the current screen.

While this can kind of be dealt with via "overflow: scroll" on the main
section, that's not the greatest. It blows the ability to use the page
up/down keys to scroll the main text area (at least on a very current
build of Mozilla as well as IE 6). Plus it introduces scroll bars in both
axes, even if they're not needed which is unsightly.

Using straight XHTML is okay for the long pages, but then it doesn't have
the nice touch of being at the absolute bottom on short pages.

Thanks for your thoughts,

--Dan
--
FREE scripts that make web and database programming easier
http://www.analysisandsolutions.com/software/
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
Jul 20 '05 #1
5 8767

"Analysis&Solutions" <in**@analysisandsolutions.com> wrote in message
news:bi**********@reader2.panix.com...
Hey Folks:

I'm probably dreaming here, but perhaps there's a way...

I just gave a presentation. It's in XHTML and uses CSS for making things
look nice. Right now there's a small navigation system on top and the
main text area. The presentation is about to be put on the web, so I'd
like to add a footer on each page with the presentation name and a link
back to the main site.

The quest here is:

1) On pages where the main text doesn't fill the whole screen, put the
footer at the bottom of the browser window.

2) But, on pages where the main text is long enough to scroll down below
the bottom of the window, to place the footer below the bottom of the
text.
Doing something like this:

div.bottom {
position: absolute;
bottom: 0;
}

works fine for short pages, but on longer pages, the footer winds up
covering the main text at the bottom of the current screen.


I found the link below was very helpful

http://scott.sauyet.name/CSS/Demo/FooterDemo1.html

david
Jul 20 '05 #2
In <hK*****************@newsfep2-gui.server.ntli.net> "david graham" <da************@ntlworld.com> writes:
http://scott.sauyet.name/CSS/Demo/FooterDemo1.html


David, THANK YOU SOOOOOO MUCH!!!!

--Dan
--
FREE scripts that make web and database programming easier
http://www.analysisandsolutions.com/software/
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
Jul 20 '05 #3
david graham wrote:
"Analysis&Solutions" <in**@analysisandsolutions.com> wrote in message
news:bi**********@reader2.panix.com...
I just gave a presentation. It's in XHTML and uses CSS for making things
[...]

1) On pages where the main text doesn't fill the whole screen, put the
footer at the bottom of the browser window.

2) But, on pages where the main text is long enough to scroll down below
the bottom of the window, to place the footer below the bottom of the
text.

http://scott.sauyet.name/CSS/Demo/FooterDemo1.html


Like the page says, it doesn't work with Opera 6. I've been trying to
battle this before and I haven't found *any* way to make Opera 6 behave
like this. Does somebody know a way to get this behaviour out of Opera
6? The solution doesn't need to work with other browsers as I can insert
required hacks to the source on server side (as long as I can identify
Opera 6) while I fetch the content from database.

--
Mikko

Jul 20 '05 #4

"Analysis&Solutions" <in**@analysisandsolutions.com> wrote in message
news:bj**********@reader2.panix.com...
In <bi**********@mordred.cc.jyu.fi> Mikko Rantalainen <mi**@st.jyu.fi> writes:
Like the page says, it doesn't work with Opera 6.


FYI: a friend and I did browser compliance tests using my real world
usage: http://nyphp.org/content/presentations/pvsxml/

Windows
Mozilla (a current build) works
IE 6 works
Opera 7 not really and renders very slowly, at least on my machine

Mac OSX
Mozilla (~1.4) works
IE 5.2 nope
Safari 1.0 nope
Opera 6

Any other data points?

OK on NN7 win98 and win2000
OK on IE5.5 win98 and win2000

david
Jul 20 '05 #5
In <3f******@news.sihope.com> kchayka <kc*********@sihope.com> writes:
Analysis&Solutions wrote:

FYI: a friend and I did browser compliance tests using my real world
usage: http://nyphp.org/content/presentations/pvsxml/

Mac OSX
IE 5.2 nope
Safari 1.0 nope
Neither of these support the min-height property, but do support the
child rules that WinIE ignores. So they will just act on
html>body, html>body div.contents {height: auto;} I don't think you will get the desired effect in these browsers (or
Konqueror) without a table layout.
Thanks.

BTW, at first I didn't even see the header or footer. The color makes
it practically invisible to begin with, plus the font size is illegibly
small for me. :hover color doesn't make it any more readable, either.


Good point on the colors. They looked fine on my CRT and on the projector
when the presentation was made. The intention was for them to be very
faint. But I looked at it on an LCD monitor the other day and they were
too light. I changed them and will get it uploaded in the near future.

The size I'm not too worried about, since the header and footer aren't
meant to be read on a consistent basis.

Thanks,

--Dan

--
FREE scripts that make web and database programming easier
http://www.analysisandsolutions.com/software/
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Nige | last post by:
I've just given one of my sites (www.wealdbroadband.co.uk) an overhaul. Anyone know if there is a way of fixing text at a certain relative position down a page? I'd like the "(c) 2003 ..." notice...
7
by: DaWoE | last post by:
Hi, I want to place a div centered of another div in IE. I get this to work in Mozilla, but not in IE. The code i use for mozilla is the following : <html> <head> <style type="text/css">
3
by: chris ciotti | last post by:
Hello all - I'm trying to position content at the bottom of a page (I'd like to anchor it there). The majority of the code was generated using Photoshop CS and then hand edited. I'm having...
7
by: Doc | last post by:
I've read in a couple of different places including the archives of this forum that html doesn't allow you to precisely dictate the position of an image, but I found this command (again in the...
4
by: Clans Of Intrigue | last post by:
Hello, this is my first post here so apologies if it's in the wrong place, inappropriate or embarrassingly stupid - please let me know :) My problem seems quite simple - I've redirected stdout to...
4
by: John | last post by:
Hi I have a small pop non-dialog form that I need to appear towards the right side of the screen. Is there a way to achieve this? Regards
8
by: Edward | last post by:
I used to do this all the time in HTML-table layouting. How do I do this in CSS? -------------------------------------------------- <table width="400px"> <tr> <td bgcolor="beige">one line of...
1
by: john | last post by:
Hi to All, I am new to html authoring, so sorry if my terminology is not correct or exact. I would like to position a footer div to the bottom of the browser window. As I research in the web...
3
by: karen987 | last post by:
Can someone please explain what code i need to add to keep a set of links at the bottom of a pop up window? I need it in a page where people post comments. It is a pop up window, of about 500x400...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.