Re: height=100% is not working for Mozilla browser



Raghavendra wrote:
> <div style="height:100%">
> <BODY>
> sample text spanning about 30 lines
> </BODY>
> </div>
> <table><tr><td>footer</td></tr></table>

What on earth made you think that you can nest a body element inside a
div element? The above code so bogus that there is no correct way to
display it. Consider yourself lucky that browsers bother to display
anything at all.

And why do you think that your footer is tabular data?

> I am using this code to display the footer always at the end of the
> browser window.

Where users with large windows won't notice it at all?

> In IE the footer is getting displayed properly at the end even when the
> text does not span the window height.

IE does a lot of fixing up of broken code. In this case it just happens
to fix it up in such a way that matches what you want.

> But in mozilla the footer is getting overlapped with the body text.

Interesting. I guess that you haven't bothered to show us all your
code.

> Any help will be appreciated.

height: 100%; means 100% of the parent element's height. Your div
doesn't have a parent element, hence the height defaults to be being
the height of the content.

What you want isn't easy across browsers, mainly due to IE's terrible
CSS support but also due to the fact that the layour model in CSS
doesn't really work for this sort of thing (the relationship between
the window and the document has more nuances than most people think at
first).

I have an old example at http://steve.pugh.net/test/test57.html but
it's broken in modern versions of Opera (and possibly other browsers)
so I don't recommend it.

Steve

.



Relevant Pages

  • Define Window has a problem.
    ... I create some windows on the fly to display quick lists on screen. ... My problem is that when I ACTIVATE WINDOW the FOOTER will ...
    (microsoft.public.fox.vfp.forms)
  • Re: Define Window has a problem.
    ... I guess it does this for all Visual Varsions. ... My problem is that when I ACTIVATE WINDOW the FOOTER ... I tryed everything in the book to get it to display but with no avail. ...
    (microsoft.public.fox.vfp.forms)
  • Re: Define Window has a problem.
    ... The VFP9 help file for DEFINE WINDOW has this to say about FOOTER: ... I tryed everything in the book to get it to display but with no avail. ...
    (microsoft.public.fox.vfp.forms)
  • Re: How to force a page to be into a frame?
    ... > frame is made to display "external" sites (i.e. written not ... > "want" to be displayed in my frame. ... any page loaded into a frame from re-loading itself in the main window. ... their browsers. ...
    (comp.infosystems.www.authoring.html)
  • Re: PDA as "X terminal" [lengthy]
    ... moves that out to the physical display (via VNC or ... finished filling in the window *before* updating the ... Each cell is a (character, ... immediately above the "write pixel" level (note that it doesn't ...
    (comp.arch.embedded)