<img src="mylink" alt="" class="imgcenter"> 

-

 .imgcenter { margin: 5px auto; display: block; max-width: 140px; width: expression(this.width > 140 ? 140 : true); max-height: 100px; width: expression(this.height > 100 ? 100 : true); } 

The height of the image should not be more than 100, Chrome everything is perfectly scalable. The FF does not work.



    1 answer 1

    here's an example

    reference

    In general, on sites, usually, initially, scripts (or editors) create pictures in order to display them correctly and have constant values.

    for me, so senseless waste of time