example
img {
max-width: 550px;
width: expression(this.width > 550 ? 550: true);
max-height: 400px;
height: expression(this.height > 400 ? 400: true);
}
secon solution example
.resize {
width: 200px;
height : auto;
}
.resize {
width: auto;
height : 300px;
}

