Sent by francky on 3 April 2006 02:02
Philippe Wittenbergh wrote:
>On Apr 2, 2006, at 12:10 AM, Guillaume wrote:
>
>
>>Is it possible to style the alt attribute without declaring a style
>>for
>>the whole body ?
>>
>>Such as:
>>
>>alt { font-style: oblique; }
>>
>>
>If you mean: styling the 'tooltip' that some browsers mistakenly
>display when hovering over an image, then the answer is: not possible.
>That is generated at OS level.
>
>But if you mean, styling the text when the image is missing (correct
>function of the alt attribute), then you can use the img tag
>img { background: lime; color:white}
>will work in most browsers.
>
>
And if you mean: styling the "title" (the "real tooltip" when hovering
over a link), then the answer is: in direct css (on the title) it is not
possible, for generated at OS level also.
Nevertheless it is possible to make an alternative tooltip with css;
though it will not be winning a beauty contest (because of the way of
using css / accessibility issues).
See testpage <http://www.cosbo-amsterdam.nl/tmp/styling_tooltip.htm>.
Greetings,
francky
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/