tux How to Hide Broken Images

This is a simple article about ugly error on pages about broken image files. It has a very simple solution with css.

  1. <img
  2. src=”broken.png” alt=”"
  3. />

If you use onerror=”this.style.display=’none’” , you won’t see any broken image.

November 15, 2009
Posted in Css — TaZ @ 10:17 pm

1 Comment »

  1. Reading your blog makes me realise I need to put much more effort into mine.

    Comment by showers — December 14, 2009 @ 8:06 am

RSS feed for comments on this post. TrackBack URI

Leave a comment