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.

Code:
img {
border: 0px;
max-width:600px;
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
Subject Author Views Date
Post IE Image max-width (resolved) SandraR 2187 Aug 10, 2006, 8:19 PM