Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

min-height in IE`

Status
Not open for further replies.

TurboSRT4

Programmer
Nov 23, 2009
47
US
Hello i have a problem but not a major issue, so far it its my only real hold up in making my site cross compatible.

css min-height just does nothing in IE is there a simple solution. I have googled the issue but nothing has worked. thanks you
 
The easy solution:

Code:
yourSelector {
   min-height: 20px;
   _height: 20px;
}

Obviously, you can break out the _height into a < IE7 style sheet (using conditional comments) to stop validation issues.

Basically, IE6 and below treat "height" as "min-height" - UNLESS you have overflow set to hidden.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Snippets & Info:
The Out Atheism Campaign
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top