Topic: The interpretation of height: 100% Pages that link to <a href="https://ozoneasylum.com/backlink?for=23356" title="Pages that link to Topic: The interpretation of height: 100%" rel="nofollow" >Topic: The interpretation of height: 100%\

 
Author Thread
Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

IP logged posted posted 09-19-2004 17:34 Edit Quote

Now, I know IE interprets this the way I'm looking for, by making the element's height 100% fo its containing element, but do I have it wrong and this is not, in fact, the way it's supposed to be interpreted? When I set the height of a div to 100% in firefox it only shows as much of my DIV as there is content. Is this the way it's supposed to be? If so, any idea how I'd make said DIV cover the page and not just as much of it as has content?

templar654
Bipolar (III) Inmate

From: Beyond that line...
Insane since: Apr 2004

IP logged posted posted 09-19-2004 18:09 Edit Quote

A link or image would help you know.

Here lie the remains of Templar654's sig... *sniff*
Cell #23041 | View File

JKMabry
Maniac (V) Inmate

From: raht cheah
Insane since: Aug 2000

IP logged posted posted 09-20-2004 00:44 Edit Quote

If you're in quirks mode and setting a table's height attribute to 100% there's no problem.

If you're in an xhtml doctype and setting a div to 100%, well, tough, it won't behave the way you (and I for that matter) think it ought to.

There are fakes and hacks here and there, depending on what you're trying to do.

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

IP logged posted posted 09-20-2004 00:53 Edit Quote

For mozilla/firefox, you need to set the HTML and the BODY height to 100% if you want anything contained within them to be 100%.


Unfortunately, it still doesn't work right if the content exceeds the window height...

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

IP logged posted posted 09-20-2004 09:14 Edit Quote

templar654: I'm not looking for people ot fix my code for me. if I were, I now have webspace so I would have put it online and asked for help on that. All I want to know is how the various browsers interpret height: 100% and am explaining how I came ot be askiung such a question.

JK and DL: Thanks much for your help guys. Looks like my stylesheet is going to include a few fo the godo ol' IE '* html body' element references then in various places. And yes, my doctype was set to XHTML 1.0 Strict...so I think I'll give it a try in quirks mode and simply live with the hacks in my stylesheet.

Thanks again everyone.

edit: My apologies Templar...I totally forogt what I posted last night, and I did in fact ask for help in one area. I iwll post up a link to my code at some point, but I want to try a few things and see if I can get it working on my own first.

(Edited by Skaarjj on 09-20-2004 09:17)

JKMabry
Maniac (V) Inmate

From: raht cheah
Insane since: Aug 2000

IP logged posted posted 09-21-2004 00:53 Edit Quote

dl's exactly correct there but I wanted to mention before you got too far off on a weird tangent, that you can fake a 100% column by using a background-image for the body that tiles all the way down if that's what you're trying to do. Otherwise you'll be limited to 100% of the broswer's initial "live area".

This is why an example of what you're trying to do would be good, if you're working in the body this is a fairly easy solution, some other element would have to use some other trick, without an example you might be going off learning yourself some bad habits (or completely innovating, heck, someone's gotta do it).



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu