Very useful, neutralizer thanks - this is by far the easiest way to do this.
I personally set both max width and max height in the CSS definition, as extremely 'tall' images can be annoying too, i.e. I use this CSS code:
HTML Code:
.resize
{
max-width: 500px;
max-height: 400px;
width: expression(this.width > 500 ? 500: true);
height: expression(this.height > 400 ? 400: true);
}
This is on a VB 3.6.0 forum. The one thing I would like though is a way of making this resized image clickable so you can view the larger image with a click - anyone know how to easily add this function via CSS (even if it has to call a function in headinclude)?
/EDIT: Nevermind, I wound up modifying and using the code
here and it works a treat for me