Forum Moderators: open

Message Too Old, No Replies

Displaying Broken Images

Is there a way to get Firefox to obey the width and height attributes?

         

Captaffy

9:20 pm on Mar 16, 2007 (gmt 0)

10+ Year Member



One of my sites has a lot of thumbnails that are actually residing on other servers, but occasionally one of these servers doesn't respond, so the image doesn't work.

When Firefox displays a broken image, it simply shows the alt text, and completely ignores the image's width and height settings, which ruins the layout. Is there any way to get Firefox to display a placeholder with the correct dimensions?

Otherwise, I guess I will have to put the thumbnails in a table...

tedster

4:59 am on Mar 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How about this - display the actual thumbail as a background image. For the foreground image, always use and size the same spacer.gif file, which would be the only image you would need to host yourself.

The whole page layout should render very quickly with only 1 image "needed", although the background thumbnails might still trickle in gradually.

joelgreen

2:56 pm on Mar 20, 2007 (gmt 0)

10+ Year Member



or you could try putting image in a <div style="width:99px; height:99px"> where 99 should be replaced with correct image size. Have not tested, just a thought.