Re: Tooltips vs. ALT in IMG (was Re: Questionable implementation of

-----BEGIN PGP SIGNED MESSAGE-----

At 03:14 PM 24/01/98 -0500, Jordan Reiter wrote:
>Rob felt an urge to reveal at 6:19 AM -0000 on 1/24/98:
>
>> How to assign CLASSes and IDs to an attribute rather than an element in
>> CSS I don't know. Has that been thought about yet?
>
>As far as I know, you *can't*. I can't remember exactly what it was, but 
I
>remember someone wanting to be able to use stylesheets to affect the
>appearance of attribute-based information...Oh, I remember now...to be 
able
>to affect the appearance of text based on the LANG attributes...

You can do this in CSS2 [1]:

[LANG=la] { font-style: italic }

See <http://www.w3.org/TR/WD-CSS2/selector.html#h-6.3> for more on 
attribute selectors.

However, this is not what Rob wanted, which was a way to specify the 
appearance of rendered attribute content.  This isn't possible, unless you 
apply the style to the element (IMG), which would also affect the 
rendering of the image and ALT text.

[1] http://www.w3.org/TR/WD-CSS2/

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQB1AwUBNMpY9Q/JhtXygIx1AQE9vQMAy4YhCX6Ku7Cbop/s41HEy0Z3QGSIHofm
AFchA7FzURMb99CnKchjX4Qs8n5OyYuY4RAhkRC1DQCoKk8owzVy71hoOV1fM4wR
ymS3oy9p39XvagPOqPR/agcitDpnufSi
=Xx/+
-----END PGP SIGNATURE-----

--
Liam Quinn
Web Design Group            Enhanced Designs, Web Site Development
http://www.htmlhelp.com/    http://enhanced-designs.com/

Received on Saturday, 24 January 1998 16:10:04 UTC