lol, i meant this;
let's say I have a table that has to be less than 350 px wide, a user is going to input an image that I have no control over it's size. To keep my page looking good, the image must be less than 350 px wide. Now I can do a width='350' in the image tag, that's no problem, but if the user puts a image that's 1024 x 768, the image is going to look horrible at 350 x 768. So, i need to reduce both the image width and height in ration to one another.
so that an image that's 700 x 500 will display on my site as 350 x 250. Now, I can the the image size, but how can I scale it down to fit in the page in proportion to the height, so that the image wont be distorted