Format alternative Text

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bettina

    Format alternative Text

    How can I do to format the text shown in alt="..."
    Is it possible to define the size of the field?, colour of background, font, etc?
    Thank you
    Bettina
  • Neal

    #2
    Re: Format alternative Text

    On 13 Jun 2004 07:32:56 -0700, Bettina <bettina@coaste r.ch> wrote:
    [color=blue]
    > How can I do to format the text shown in alt="..."
    > Is it possible to define the size of the field?, colour of background,
    > font, etc?
    > Thank you
    > Bettina[/color]

    IE might be the only browser that puts alt text in a popup tooltip. The
    title attribute is what appears in the tooltip in all browsers. The alt
    text can only be expected to appear in place of an unrendered image.

    Bearing that in mind, yes, you can apply CSS to the img element which will
    affect (in many browsers) the rendering of replacement alt text. Or you
    can include the image within heading tags to get the text to be understood
    and rendered as a heading.

    "Size of the field" ... I'm not sure what you mean.

    Comment

    • Chris Morris

      #3
      Re: Format alternative Text

      bettina@coaster .ch (Bettina) writes:[color=blue]
      > How can I do to format the text shown in alt="..."
      > Is it possible to define the size of the field?, colour of
      > background, font, etc?[/color]

      With CSS, certainly. Not sure what you mean by 'size of the field',
      but for the rest:

      img {
      font-family: sans-serif;
      color: #c00;
      background: #fff;
      }

      Browser support varies. It works fairly well in modern graphical
      browsers with image-loading disabled, most text-mode browsers don't
      support it, though. And it's meaningless in speech browsers,
      obviously.

      If you mean reformatting the thing that you get when hovering over an
      image in IE, as far as I know that can't be reformatted. Furthermore
      you shouldn't be using alt for that anyway, use alt for an alternative
      and title for supplementary information like the hover.

      --
      Chris

      Comment

      Working...