what is the best and valid way for cross browser min-height?
Posted
by metal-gear-solid
on Stack Overflow
See other posts from Stack Overflow
or by metal-gear-solid
Published on 2010-04-22T06:38:14Z
Indexed on
2010/04/22
6:43 UTC
Read the original article
Hit count: 235
for #main-content
I don't want to give any fix height because content can be long and short but if content is short then it should take minimum height 500px
.
i need compatibility in all browser.
Is thery any w3c valid and cross browser way without using !important because i read !important should not be used
In conclusion, don’t use the !important declaration unless you’ve tried everything else first, and keep in mind any drawbacks. If you do use it, it would probably make sense, if possible, to put a comment in your CSS next to any styles that are being overridden, to ensure better code maintainability.
I tried to cover everything significant in relation to use of the !important declaration, so please offer comments if you think there’s anything I’ve missed, or if I’ve misstated anything, and I’ll be happy to make any needed corrections.
http://www.impressivewebs.com/everything-you-need-to-know-about-the-important-css-declaration/
© Stack Overflow or respective owner