[Phpwm] [OT]ish CSS question

Phil Beynon phil at infolinkelectronics.co.uk
Wed Sep 19 11:53:08 BST 2007


I just thought there might be a way of doing it.......
In the end I just used a database call, if it had text for the alt tag it
used that, else a default variable. Not as pretty but it worked!

Phil


> Not as far as I'm aware, and there certainly shouldn't be - CSS is solely
> for presentation while HTML is representing data and the contents
> of the alt
> attribute is data...
>
> On 18/09/2007, Phil Beynon <phil at infolinkelectronics.co.uk> wrote:
> >
> > Is there anyway of specifying a default, i.e. cascading
> through, value for
> > an image tag's alt element text?
> > I had a mooch on Google and can't see how to.
> >
> > something along the lines of;
> >
> > #img1{
> > position:absolute;
> > left:10px;
> > top:100px;
> > z-index:20;
> > alt:"wibble";
> > }
> >
> > Phil
> >
> >
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.5.487 / Virus Database: 269.13.22/1013 - Release Date:
> > 17/09/2007
> > 13:29
> >
> > _______________________________________________
> > Phpwm mailing list
> > Phpwm at mailman.lug.org.uk
> > https://mailman.lug.org.uk/mailman/listinfo/phpwm
> >
> >
> _______________________________________________
> Phpwm mailing list
> Phpwm at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/phpwm
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.487 / Virus Database: 269.13.22/1015 - Release Date:
> 18/09/2007 11:53
>
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.487 / Virus Database: 269.13.22/1015 - Release Date: 18/09/2007
11:53


More information about the Phpwm mailing list