NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page [Working] 100% Height Divs in ALL browsers.

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-24-2007, 02:45 AM THREAD STARTER               #1 (permalink)
Account Closed
Join Date: Apr 2007
Location: United Kindom
Posts: 201
cascadingstylez is on a distinguished road
 


Adoption

[Working] 100% Height Divs in ALL browsers.


Many of you may have searched high and low in order to get your container/wrapper divs to display at 100% height in the browser window. I ran a few tests today for a site im working on, and actually got a method that works.

This method may be floating around on the internet, but i tend to do all my own testing because that way at least you know what your doing works. This method was tested in:

Firefox
IE7
IE6
IE5.5
Opera
Netscape
Konqueror
Safari
IE Mac 5.2
Camino
????: NamePros.com http://www.namepros.com/programming/331395-working-100-height-divs-all-browsers.html
Shirra
Mozzilla
T-Online


Im not going to paste the source, but you can view it, and view the css at the URI's below:

http://viberate.co.uk/ws/height/withContent.html
http://viberate.co.uk/ws/height/withoutContent.html
http://viberate.co.uk/ws/height/style.css

If you run across any problems, feel free to give me a shout and id be willing to resolve them. I havn't came across any yet.
Last edited by cascadingstylez; 05-24-2007 at 02:53 AM.
cascadingstylez is offline  
Old 05-24-2007, 07:48 AM   #2 (permalink)
Senior Member
Join Date: Dec 2004
Location: Burlington, Vermont
Posts: 1,048
dan_Vt is a jewel in the roughdan_Vt is a jewel in the roughdan_Vt is a jewel in the rough
 



I've wrestled with that issue many times, and finally resorted to handling everything with css, except height and used a table for that.

Thanks for the links.

rep added.
__________________
Vermont SEO
Tool Band Forum

For Sale: Co-Sign.com
dan_Vt is offline  
Old 05-24-2007, 10:22 AM   #3 (permalink)
NamePros Regular
Join Date: Mar 2005
Posts: 442
paaaaaaaaaa is a jewel in the roughpaaaaaaaaaa is a jewel in the roughpaaaaaaaaaa is a jewel in the rough
 



Try re-testing that in IE6. I believe the overall aimed outcome is to always have the grey box fill 100% of the height? If thats the case then it fails in IE6. I would also take a guess that it fails in IE5.x too.
__________________
Please add to my rep points if i was helpful. Thanks.

Content management system and online shop software
paaaaaaaaaa is offline  
Old 05-24-2007, 02:40 PM   #4 (permalink)
NamePros Regular
 
abdussamad's Avatar
Join Date: Jul 2006
Location: Karachi
Posts: 791
abdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of light
 



Originally Posted by paaaaaaaaaa
Try re-testing that in IE6. I believe the overall aimed outcome is to always have the grey box fill 100% of the height? If thats the case then it fails in IE6. I would also take a guess that it fails in IE5.x too.
It looks ok to me in both IE 6 and 5.5 . The only problem is that withoutcontent.html linked above also has content
__________________
site unblocker - Computer Hardware
abdussamad is offline  
Old 05-24-2007, 03:59 PM   #5 (permalink)
NamePros Regular
Join Date: Mar 2005
Posts: 442
paaaaaaaaaa is a jewel in the roughpaaaaaaaaaa is a jewel in the roughpaaaaaaaaaa is a jewel in the rough
 



The aim is to get a container to fill 100% of the browsers window height right? As IE6 and before doesn't support 'min-height' they only take notice of height. Which in this case has been set to auto which will only scale to the size of the text inside.

The withoutcontent page, although with content does not fill 100% of my browser. So the containers height auto adjusts to the height of the content rendering less than the browsers height.
__________________
Please add to my rep points if i was helpful. Thanks.

Content management system and online shop software
paaaaaaaaaa is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 09:15 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger