![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have some divs (float: left) that I'd like to set a minimum height on. What's the level of support on min-height and are there any bugs I need to watch out for. I've never used this, and I have some memory of there being a problem with it somewhere. Jeff |
|
Nicolaas |
#3
| |||
| |||
|
|
I have some divs (float: left) that I'd like to set a minimum height on. What's the level of support on min-height and are there any bugs I need to watch out for. |
#4
| |||
| |||
|
|
Jeff <dont_bug_me (AT) all (DOT) uk> wrote: I have some divs (float: left) that I'd like to set a minimum height on. What's the level of support on min-height and are there any bugs I need to watch out for. IE doesn't support it, but it treats "height" as min-height, so a cross browser min-height solution is: .YourClass{min-height:10em;height:10em} *>.YourClass{height:auto} |
#5
| |||
| |||
|
|
.YourClass{min-height:10em;height:10em} *>.YourClass{height:auto} *> that is something I haven't used either. I don't even know what to call it! Let me know so I can google it. "*" is the universal selector; it applies to all objects. |
#6
| |||
| |||
|
|
"*" is the universal selector; it applies to all objects. |
#7
| |||
| |||
|
|
.YourClass{min-height:10em;height:10em} *>.YourClass{height:auto} *> that is something I haven't used either. I don't even know what to call it! Let me know so I can google it. is the child selector which IE doesn't support * is a wildcard. |
#8
| |||
| |||
|
|
"*" is the universal selector; it applies to all objects. ">" is the child selector. Put together it means "for a child of any object" apply this style. |
#9
| |||
| |||
|
|
"*" is the universal selector; it applies to all objects. ">" is the child selector. Put together it means "for a child of any object" apply this style. Hold on, the example I provided uses a class as well. I used "*" since that would allow the OP to use the code example by only changing the class name. Using "*" also means that the CSS code will survive a change in the markup (bar a class name change). Ah! So it is better phrased as "an element that is a child of any |
#10
| |||
| |||
|
|
Spartanicus wrote: "*" is the universal selector; it applies to all objects. ">" is the child selector. Put together it means "for a child of any object" apply this style. Hold on, the example I provided uses a class as well. I used "*" since that would allow the OP to use the code example by only changing the class name. Using "*" also means that the CSS code will survive a change in the markup (bar a class name change). Ah! So it is better phrased as "an element that is a child of any element and uses .YourClass"? In an off hand way, that makes perfect sense. Thanks to all. |
![]() |
| Thread Tools | |
| Display Modes | |
| |