473,795 Members | 3,151 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8782

"Analysis&Solut ions" <in**@analysisa ndsolutions.com > wrote in message
news:bi******** **@reader2.pani x.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&Solut ions" <in**@analysisa ndsolutions.com > wrote in message
news:bi******** **@reader2.pani x.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&Solut ions" <in**@analysisa ndsolutions.com > wrote in message
news:bj******** **@reader2.pani x.com...
In <bi**********@m ordred.cc.jyu.f i> 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*********@si hope.com> writes:
Analysis&Solut ions 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
3425
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 to appear at the same place as you go through the pages, but it varies if you alter the window width and cause a line to wrap/unwrap. -- Nige
7
10118
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
10496
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 trouble because the top container does not extend the length of the text block in hold (rubber space?) so when I position my bottom content, it's in the middle of the page.
7
7990
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 archives of this forum) that apparently allows you to do exactly that. <img src="whateveryourfilelocationis" style="position:absolute; left:Xpx; top:Xpx"> What do you call this command? The responder of the particular message where I found it...
4
8711
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 a wxTextCtrl, so that any trace messages appear in a log window at the bottom of my app. The problem is that whenever I update the text, the scrollbar resets to the top - i.e. to the earliest log message. What I really want it to do is reset...
4
9518
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
3363
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 text</td> </tr> <tr> <td bgcolor="#eeeeee" align="center">this is another line of text</td>
1
5329
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 shows this could be done a containing element with "min-height: 100%;" and an absolute positioned element (div) inside, aligned to bottom ("position: absolute; bottom:0px")
3
2291
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 where peoople post comments, and can read the previous and next ones. I have tried aligning it to the bottom of the window, in a table using the "space" keys, and the align bottom etc. however what happens is that if someone posts some lines of...
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10214
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10001
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9042
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7540
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.