User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 422,790 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,368 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 628 | Replies: 5
Reply
Join Date: Feb 2008
Posts: 2
Reputation: sriram.venkata is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sriram.venkata sriram.venkata is offline Offline
Newbie Poster

Help Need help with div

  #1  
Feb 13th, 2008
Hii people !!!
In one of the web pages I am designing, I have 3 tables whose width and height I am defining using div. I am able to properly set the width . But when it comes to height, I need to set both the maximum height and the minimum height.[b] I tried using both the max-height and min-height , but only one of these two attributes is applied....

Please advice,
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2008
Location: Fiji
Posts: 8
Reputation: enque is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
enque's Avatar
enque enque is offline Offline
Newbie Poster

Re: Need help with div

  #2  
Feb 14th, 2008
IE will treat height similarly to min-height -
content will push the height of a box higher if it does not fit in the specified height.
Basically min and max height properties isn't supported by IE.
Website Design with a difference.
Reply With Quote  
Join Date: Jan 2008
Location: Bangalore, India
Posts: 336
Reputation: DangerDev is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 32
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Whiz

Re: Need help with div

  #3  
Feb 14th, 2008
height, width and min-height is supported by IE6 other things are not supported by it
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
~Mitch Ratcliffe
Reply With Quote  
Join Date: Feb 2008
Posts: 2
Reputation: sriram.venkata is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sriram.venkata sriram.venkata is offline Offline
Newbie Poster

Re: Need help with div

  #4  
Feb 14th, 2008
In that case, how do i go about implementing the max as well as min height in IE?
Reply With Quote  
Join Date: Jan 2008
Location: Bangalore, India
Posts: 336
Reputation: DangerDev is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 32
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Whiz

Re: Need help with div

  #5  
Feb 14th, 2008
see the orkut code using firebug.
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
~Mitch Ratcliffe
Reply With Quote  
Join Date: Jun 2004
Location: Hemet, CA
Posts: 429
Reputation: FC Jamison is on a distinguished road 
Rep Power: 5
Solved Threads: 18
Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Solution Re: Need help with div

  #6  
Feb 15th, 2008
I found this googling around:

max-height
* html div#division { 
   height: expression( this.scrollHeight > 332 ? "333px" : "auto" ); /* sets max-height for IE */
   max-height: 333px; /* sets max-height value for all standards-compliant browsers */
}

min-height
* html div#division { 
   height: expression( this.scrollHeight < 334 ? "333px" : "auto" ); /* sets min-height for IE */
   min-height: 333px; /* sets min-height value for all standards-compliant browsers */
}
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 9:05 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC