Matpatnik Posted December 19, 2007 Share Posted December 19, 2007 Hi guys, I'm trying to show a picture through a page and for some funny reason it doesn't show with Opera and Safari.It work ok with EI7 but a soon as I refresh the page the width become the hight and the hight become the width!!!It work perfectly with FF2 <img src="http://www.stoneshowroom.ca/images/2/41.jpg" width="300" hight="184" alt="testing" /> You can see it at this address: http://www.stoneshowroom.ca/New_Website/in...ype=4&id=41 Link to comment Share on other sites More sharing options...
Ingolme Posted December 19, 2007 Share Posted December 19, 2007 I recommend using CSS to style the image, and you spelled "height" wrong ("hight").<img src="http://www.stoneshowroom.ca/images/2/41.jpg" style="width: 300px; height: 184px" alt="testing" /> Link to comment Share on other sites More sharing options...
justsomeguy Posted December 19, 2007 Share Posted December 19, 2007 I don't know why Safari doesn't want to show it, but it shows up fine in Opera. This is why the dimensions are getting messed up:.picture img{width:94.5%; height:94.5%;}You're explicitly telling the browser that the width and height of the picture should both be 94.5% of the width and height of the parent container. Link to comment Share on other sites More sharing options...
Matpatnik Posted December 19, 2007 Author Share Posted December 19, 2007 Thank you guys, I forgot to look at the css hehe! I toke off the line: .picture img{width:94.5%; height:94.5%;} and every thing work perfectly now. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.