slawek wrote:
I've found a way to do it in explorer.
http://www.svendtofte.com/code/max_width_in_ie/
Great! /another proprietary IE extension/!!! They should have
implemented that expression() function with a -ie- prefix, if at all.
This one is exceptionally bad because it also depends on JavaScript;
which is not supported by every UA, and thus there is no chance that it
would ever be included in CSS, though there have been proposals for a
calc() function (but that would not use JavaScript). I don't understand
why IE has put in so much effort to implement proprietary technologies,
while failing to implement standards.
If you're going to use that property, at least keep it in a seperate
stylesheet, and preferably one that is hidden from everything but IE.
You can use conditional comments [1], or one of Tantek's highpass or
midpass filters [2]. Or, you may wish to take a look at Dean Edward's
IE7 [3], which solves the min/max-width/height problems as well as many
more.
[1] Note: Conditional comments are another proprietary IE technology,
yet the "downlevel-hidden" version is a valid SGML/XML comments, so
the validity of the page is not affected, and they are ignored by
all other UAs. The "downlevel-revealed" is not a valid comment, and
must not be used.
http://msdn.microsoft.com/workshop/a...omment_ovw.asp
[2]
http://www.tantek.com/CSS/Examples/
[3]
http://dean.edwards.name/IE7/
--
Lachlan Hunt
http://www.lachy.id.au/
Please direct all spam to ab***@127.0.0.1
Thank you.