Reply to Re: styled text substitute for a picture that fails to load...

Your name:

Reply:


Posted by dorayme on 10/13/05 08:03

> From: Mark Parnell <webmaster@clarkecomputers.com.au>
>
> dorayme
>
>> 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.
>

Yes, thanks. All my old browsers "respond" to this (I have only
tried it with inline styles as a quick test of your suggestion),
but my Mozilla 1.3.1 does it more as the style is intended (ie.
it works in my Mozilla best).

My images almost never fail to appear but I am thinking it would
be a nice touch to guard against the possibility.

>> I know text appears via the alt tag *attribute* :-)

>*attribute* :-)

Oops, yes! You perhaps do not know or, more likely, are too polite to
say, that this is at least the second time I have made this slip!


dorayme

I will see how it looks on the PC browsers and with proper
separate style sheets... when I come back from my late afternoon
swim - for those in miserable cold climes, my apologies.
Basically, to labour the point, I go to a sort of Paradise most
days even in winter. I am really sorry, but it is the privilege
of visitors from outer space to choose where on earth they want
to be...

[Back to original 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

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