I have been working on a site for the past 3 hours and I can’t figure this out to save my life.
I am by no means a web developer, I am a photographer by trade and haven’t really used html extensively since around 2002, and I had 0 experience with CSS prior to this website.
Anyway, I am trying to use float to make some images float in a body of text. I got it to work on my first image, because it was square. However, on my second image, the picture is in landscape orientation. In Opera, the image displays fine, but in IE7, it is stretched to be a square image.
[CODE] <span style=”display:inline;width:53%;height:40%;margin-right:5px;margin-top:5px;float:right;background:#1a86f1;border:1px solid black;padding:4px”>
<img src=”/images/001.jpg” style=”width:98%;height:60%”>
</span>
This is what I used. I tried to get the image to shrink horizontally by changing the height to 60%, but it doesn’t work in IE. I am about to pull my hair our here.
And to think, this all started as a simple favor for a friend.
Oh, and here’s the site:
[url]http://www.electmattsheriff.com