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]
|