CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 26th, 2002, 10:48 PM
Subcom Subcom is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Posts: 12 Subcom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Help with making CSS overflow property cross-browser compliant

I would like to create a <div> box with CSS that takes up 100% of the screen height - at a minimum. If there is enough content in the box to overflow it, I would like the box to expand downward to show this extra content.

I have this functionality in IE 5-6. All I have to do is set the <div> box height to 100% in the CSS declaration. However, I understand that this only works because IE 5-6 incorrectly implements the overflow property (see <http://www.xs4all.nl/~ppk/css2tests/overflow.html>).

However, as that page explains, in Netscape6/Mozilla1+, the content (correctly) overflows outside of the box and the box does not expand.

Does anyone have a solution that works for me in both IE and NS/Mozilla? Thanks in advance.

Reply With Quote
  #2  
Old October 27th, 2002, 06:45 AM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 12
To get this behaviour in Mozilla you can use: min-width:100%

Reply With Quote
  #3  
Old October 28th, 2002, 01:51 PM
Subcom Subcom is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Posts: 12 Subcom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks, that's very handy! Of course, IE's implementation of the min/max-width and min/max-height declarations is so limited some have referred to it as silly. Sigh. Mozilla wins again (I've already had to compensate for the fact that IE incorrectly renders box borders).

Thanks again.

Reply With Quote
  #4  
Old October 28th, 2002, 02:37 PM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 12
min-height:100% will work in Mozilla,Konqueror and Opera.IE has a very bad implentation of CSS ,it supports only a small part and the part that it supports is implented very quirky.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Help with making CSS overflow property cross-browser compliant

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap