Different image sizes in a fixed sized container

edithbear

New Member
I am re-sizing an image after a user uploads it to maintain its aspect ratio but be no more than 200 pixels wide or 200 pixels high.I am then displaying the image in an ASP.Net \[code\]Image\[/code\] control. How do I prevent the images from affecting the surrounding elements? I tried setting the \[code\]Width\[/code\] property and \[code\]Height\[/code\] property of the control but that just re-sizes the image itself. Is there maybe a way to wrap the control in a \[code\]div\[/code\] with a fixed width/height?Thanks a lot
 
Top