W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2009

[whatwg] <figure><img><* caption>

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 30 Nov 2009 13:00:00 -0600
Message-ID: <dd0fbad0911301100l3cdfbe40m53b41f155cd94dda@mail.gmail.com>
On Mon, Nov 30, 2009 at 12:57 PM, Nils Dagsson Moskopp
<nils-dagsson-moskopp at dieweltistgarnichtso.net> wrote:
> "Tab Atkins Jr." <jackalmage at gmail.com> schrieb am Mon, 30 Nov 2009
> 12:50:42 -0600:
>
>> Note: I would style it with "figure > [caption]" instead, to ensure
>> you don't accidentally grab misplaced captions.
>
> I would like to style captions on top differently from captions
> underneath. What now ?

figure > [caption]:first-child
or
figure > [caption]:last-child

If you're putting your captions somewhere in the middle of your
content, you're on your own.

(Yes, these won't work in all IEs, but then we're running into
ordinary CSS issues that can't be fixed at the HTML level.)

~TJ
Received on Monday, 30 November 2009 11:00:00 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:19 UTC