•
•
•
•
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
![]() |
•
•
Join Date: Feb 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
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,
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,
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.
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.
•
•
Join Date: Jan 2008
Location: Bangalore, India
Posts: 336
Reputation:
Rep Power: 0
Solved Threads: 32
•
•
Join Date: Jan 2008
Location: Bangalore, India
Posts: 336
Reputation:
Rep Power: 0
Solved Threads: 32
I found this googling around:
max-height
min-height
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 */
}![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- createElement wont show table/div (JavaScript / DHTML / AJAX)
- div align=center (HTML and CSS)
- scrolling div ? (HTML and CSS)
- Div percentage height, centered and scrolling... or not... (Site Layout and Usability)
- Add textbox to editable div problem (JavaScript / DHTML / AJAX)
- Heading tags and div tags (HTML and CSS)
- DIV-X To VCD? (Geeks' Lounge)
Other Threads in the HTML and CSS Forum
- Previous Thread: CSS Horizontal 2 Level Navigation
- Next Thread: dynamically generating buttons


Linear Mode