I have been making a web landing page for my app, but it keeps squishing the landscape image and thinking its portrait. I want the div to auto adjust for the picture so if the height is greater than the width then the div should adjust to the image's size. How could I go about doing that.
Sample of the Code I am using to display the images:
<div id="favphoto">
<a href="/event/%event%/photo/%id%.jpg" target="_blank">
<img border="0" src="/event/%event%/photo/%id%.jpg" />
</a>
</div>
I want to make the div auto size to the correct image that gets called, if not am I just going about this wrong.