2 replies [Last post]
MalphasWats
Offline
Regular
Last seen: 12 years 51 weeks ago
Joined: 2004-03-22
Posts: 45
Points: 0

I've only really ever used MS browsers, and even though I've downloaded opera and firefox for testing, I'm still finding it hard to leave IE6 behind.

Sadly, the company I work for have inflicted themselves with CSC, which means that the best we get is IE5.5, with barely any service packs (the machine I'm using now doesn't even have the quicklaunch bar!).

I've got an image on the front page of my site (it's dead cool, I can take a photo with my mobile phone and upload it to my webserver within seconds and the picture automagically changes - but that's beside the point) it sits in a span that floats it to the right so the text content flows around it nicely which works fine, but I've also added an extra class def in my CSS that just consists of {width:25%; height:25%;} just to make it a reasonable size for the front page.

Now, in all the browsers I've tested with, everything works fine (except that the first time it loads the dimensions are wrong, but I think that's "just live with it" bug territory) all except this carp version of IE5.5, the image doesn't display at all unless I take out the 'class' part of the <img> tag.

Am I wasting my time trying to make it work, or is there something I can do to help with this browser?

http//www.michael-watts.com

"Never put your face in a bag of angry squirrels"

DCElliott
DCElliott's picture
Offline
Leader
Halifax, Canada
Last seen: 2 years 23 weeks ago
Halifax, Canada
Timezone: GMT-3
Joined: 2004-03-22
Posts: 828
Points: 0

IE 5.5 *spit* and img tags

You should define your image as a block, not put it in a span, I think.

#coolimage {
display:block;
float:right;
width:25%;
height:25%;
}
...
<p or div><img src="phoneshot.jpg" alt="Aren't I a clever boy?" id="coolimage" />...other stuff...</p or div>

DE

David Elliott

Before you ask
LearnXHTML|CSS
ValidateHTML|CSS

MalphasWats
Offline
Regular
Last seen: 12 years 51 weeks ago
Joined: 2004-03-22
Posts: 45
Points: 0

IE 5.5 *spit* and img tags

Thanks, I'll try it that way.

http//www.michael-watts.com

"Never put your face in a bag of angry squirrels"