Re: Position of ALT text on IMG

<anonymous> wrote:

> I would like a means of specifying the position of the
> alt text (as in <img src="x.x" alt="Home" width="100"
> height="200">) on IMG.
> With UAs that draw a full size box for such elements
> this is of paramount importance. Even for those that
> do not, it would be of utility.
> The simplest thing seems to be to have IMG:alt.
> Everything except for display would valid on this, and
> although many of the properties could be equally
> accessed via IMG {}, text-align and vertical-align
> would have different effects.

There is the general issue of placeholder content of which the ALT attribute
on the IMG tag is one example.  The SUMMARY attribute of TABLE is another

About a year ago, there was some discussion in the working group about
progressive rendering which covered concepts such as partial content and
placeholders.  In summary: new pseudo-class ":partial" (the element is in a
state of being "partially" loaded, rather than a new "partial" element being
generated) and new property "placeholder: previous | partial | content |
inherit" - where the "content" value could be used to simulate the stylistic
effect of ALT and SUMMARY attributes in HTML4.

The intention of the discussion was to be able to specify what is displayed
in lieu of an image while the the image is being downloading, e.g.

 IMG:partial { placeholder: content; content: attr(ALT); }

Now, as to how you style the value of the content property itself, that is a
different question, following the IMG:alt reasoning you could have:

 IMG:placeholder { text-align: left; vertical-align: top }

With this :placeholder pseudo-element, and the abstraction from a particular
attribute, you can then also use it for other tags and attributes as well.



> =====
> __________________________________________________
> Do You Yahoo!?
> Bid and sell for free at

Do postings from yahoomail always show anonymous or is this just one person?
Would it be too much to ask the author to sign their messages?  I get very
little header information on these yahoomail emails, and can only infer from
the minimal header that this was a www-style posting. Or perhaps this is an
error with my reader.

> Received: (from daemon@localhost)
>  by (8.9.0/8.9.0) id LAA27995;
>  Mon, 1 Nov 1999 11:09:01 -0500 (EST)
> Resent-Date: Mon, 1 Nov 1999 11:09:01 -0500 (EST)
> Resent-Message-Id: <>
> Message-ID: <>
> Date: Mon, 1 Nov 1999 08:13:57 -0800 (PST)
> From:

Received on Monday, 1 November 1999 18:05:32 UTC