• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

img tag in firefox vs IE

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know everyone is in love with firefox but there is an annoying quirk I've noticed as compared to IE. (am i the only one that thinks web development in IE is like 100x better/easier/faster?)

If i have an img tag like this:

<img width="75" height="75" alt="Hey, its me!" width="75" src="http://domain/mypic.jpg" />

If the mypic.jpg image doesn't load because it can't be found on the server or whatever, in IE it keeps the 75x75 dimensions and puts the alt tag inside that space.

In FF, it disregards the dimensions all together and thus screws up my entire layout as it puts the alt tag in a straight line.

Is there any way to resolve this?

Thanks,
Aaron
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what happens if you set the css style

style="width:75px;height:75px"

Eric
 
Aaron Wilt
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Eric, thanks for the reply.

Unfortunately it's the same result



Aaron
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry but I see it working in IE 6 and FF.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic