[thelist] emulating min-height in IE

Joshua Olson joshua at waetech.com
Wed Jan 14 15:22:00 CST 2004


----- Original Message ----- 
From: "Scott Blanchard" <octigonuser at hotmail.com>
Sent: Wednesday, January 14, 2004 4:01 PM


> I need to hack around IE's lack of support for min-height in CSS
>
> Is there a workaround that will make both browsers happy? Short of using a
> spacer gif, of course.

Scott,

IE doesn't understand AttributeSelectors [1] in CSS, yet, so you can use it
to your advantage:

#mybody {
  height: 300px;
  min-height: 300px;
}

#mybody[id] {
  height: auto;
}

Best of luck,

[1] http://www.w3.org/TR/REC-CSS2/selector.html#attribute-selectors

<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com/service_areas/
706.210.0168



More information about the thelist mailing list