When you use the <img> tag in HTML you obviously fill out the src value and sometimes, not all, use the width and height values.
When an image is too large for the site and you want all the images (varying from different sizes) to be half the size, is there a way to do this without using calc.exe to find that a 974x562 image is 487x281 and plugin it in where the next image is 1232x834...
I was thinking possibly to do this:
Code:
<img src="images/art.jpg" width="1232/2" height="834/2" alt="Artwork" border="0">
<img src="images/art.jpg" width="1232*.5" height="834*.5" alt="Artwork" border="0">
But, with doubt, I was sure these wouldn't work, but I was wondering if there was a way to do this?
__________________