|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to get min-height on table
Hi there,
I would like to give a table a minimum height, since there is a nice command in CSS for this, i tried it, but it doesn't work. Does anyone know how to use this min-height command? Does it only work on DIV or SPAN, what are the restrictions and is it a supported command in mozilla FF and IE? Regards, Sander |
|
#2
|
|||
|
|||
|
|
|
#3
|
|||
|
|||
|
Blaargh!
The trick described in the link in the above post is using a bug in the css processing of IE to make sure it displays everything correctly. However, the min-height doesn't work in Mozilla firefox either! Anyone had this problem as well? (And found a solution) If so describe your solution, and how much coffee you have been drinking while finding it... ![]() |
|
#4
|
||||
|
||||
|
min- and max- height and width generally work well in Moz. Tables, however, seem not to react well with css. It probably doesn't help that height is not a legal attribute for table anyway. Have you tried styling the td to min-height?
BTW, another hack to simulate min-height in IE, Code:
#someelement {
min-height: 200px;
height: 200px; /*for IE, since IE wrongly expands for content*/
}
body>#someelement {
height: auto; /*overrides height, but IE can't see it because it's too stupid
*to understand the child selector
*/
}
![]() cheers, gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing. My html and css workshop, demos and tutorials. Ask a better question, get a better answer. |
|
#5
|
|||
|
|||
|
Hi There,
Thanks for the advice, it did not do the trick for my website unfortunately. But hey, the website is viewable. Everything works on every browser i tested it in. In some leftover hours (most of the time a coupe of days left before deadline jumps in) i'll start struggling with it some more. Cheers! Sander |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > How to get min-height on table |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|