You are here: Re: styled text substitute for a picture that fails to load... « HTML « IT news, forums, messages
Re: styled text substitute for a picture that fails to load...

Posted by Mark Parnell on 10/13/05 06:14

In our last episode, dorayme <dorayme@optusnet.com.au> pronounced to
alt.html:

> Anyone know if there is a simple way or a way to have some
> /styled/ text appear if a graphic image fails (by accident or
> intention) to load?

Apply the styles as you normally would (note: must be applied to the
containing element, not the image itself - wrap the image in e.g. <span
class="image">...</span> if necessary).

E.g.:
span.image {font-size: 2em; color: #FF0000; background-color: #0099FF;}

Firefox at least displays the alt text styled. It still displays the
border around it to show it was supposed to be an image though.

> I know text appears via the alt tag

*attribute* :-)

--
Mark Parnell
http://clarkecomputers.com.au
alt.html FAQ :: http://html-faq.com/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация