Ingenious hackery from Svend Tofte — using Internet Explorer’s proprietry expression() value in CSS to simulate max-width:
Most web-developers know that IE has fallen behind in the race for standards and being able to show the latest and greatest. Many CSS2 properties are unsupported. Some of the more useful ones, are properties such as
max-width,max-height,min-widthand finallymin-height. I will argue, howmax-widthis a crucial property, when it comes to on line readability, and then I will show you how to make IE emulate the behavior of max-width, and in turn, how to make it emulate many other properties that it’s not directly capable of.
[via Hypothecate]
Published at 3:52 pm on December 19th, 2003.
Topics: Markup and CSS
One Comment
I suggest an improvement to this expression:
http://tom-lee.blogspot.com/2006/03/how-many-pixels-in-em.html
Comment by Tom Lee at 10:09 pm on March 16th, 2006 #link