[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 05-24-2007, 01:45 AM   #1 (permalink)
Account Closed
 
Join Date: Apr 2007
Location: United Kindom
Posts: 201
41.65 NP$ (Donate)

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
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 01:53 AM.
cascadingstylez is offline  
Old 05-24-2007, 06:48 AM   #2 (permalink)
Senior Member
 
Join Date: Dec 2004
Location: Burlington, Vermont
Posts: 1,043
1,086.90 NP$ (Donate)

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
Automotive SEO

For Sale: Co-Sign.com | Skiny.net | CSIFAQ.com | FuelBank.net | Jibbar.com |
dan_Vt is offline  
Old 05-24-2007, 09:22 AM   #3 (permalink)
NamePros Regular
 
Join Date: Mar 2005
Posts: 412
162.25 NP$ (Donate)

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.

Ripe Website Manager - Steve Parish
paaaaaaaaaa is offline  
Old 05-24-2007, 01:40 PM   #4 (permalink)
NamePros Regular
 
abdussamad's Avatar
 
Join Date: Jul 2006
Location: Karachi
Posts: 708
94.60 NP$ (Donate)

abdussamad is just really niceabdussamad is just really niceabdussamad is just really niceabdussamad is just really nice


Quote:
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
abdussamad is offline  
Old 05-24-2007, 02:59 PM   #5 (permalink)
NamePros Regular
 
Join Date: Mar 2005
Posts: 412
162.25 NP$ (Donate)

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.

Ripe Website Manager - Steve Parish
paaaaaaaaaa is offline  
Closed Thread


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 04:11 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85