Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

IE Image max-width (resolved)

Quote Reply
IE Image max-width (resolved)
Found this while cleaning code and thought some could really use it.

img {
border: 0px;
width: expression(this.width > 600 ? 600: true);

For those of you frustrated by IE and auto image sizing.

For mozilla and other compliant browsers, I can do this:

img {
max-width: 100%;

Which makes the browser resize the image to fit the current size of the table cell. That's good.

The above code does the same thing for IE and FF.

Sandra Roussel
Chonsa Group Design - Fresh Start Housing