@liccyauthorMay 05.2008 — #well i have a image that have a "alt" attribute... But I would like to style the color, size and so on for the same ... that ways if the img is no displaying the alt will be visible...
@A1ien51May 05.2008 — #YOu cannot style the alt tag, that is based on the browser/computer display settings. If you want to change it, you would have to either manually change them settings [do not think that is an option!] or look into using JavaScript tooltips or live with the default colors.
@felgallMay 05.2008 — #The alt provides plain text to put in place of the image where the image can't be displayed. As such it can be styled by applying the styles that you want to whatever element that you have that contains the image.
<span class="xyz"><img></span>
simply apply the font etc to the xyz class and with this code your alt text will be styled appropriately when the image isn't displayed.
@dtm32236May 05.2008 — #The alt provides plain text to put in place of the image where the image can't be displayed. As such it can be styled by applying the styles that you want to whatever element that you have that contains the image.
<span class="xyz"><img></span>
simply apply the font etc to the xyz class and with this code your alt text will be styled appropriately when the image isn't displayed.[/QUOTE]
really? cool...
I didn't think that would work. Thanks for the tip Felgall.
@WebJoelMay 06.2008 — #Now I understand your request (I had wrongly thought you wanted to have alt="" be 'external' in a CSS document or something which would not happen, as alt="" is "content", not "presentation" and it belongs [I]IN[/I] the HTML document).,
And, the excellent follow-up posts fully explain the how~to/s so I have nothing to add. ?