W3C home > Mailing lists > Public > www-style@w3.org > October 2008

Re: Selector for tags with a certain child.

From: Keiji Ikari <kei@teamikaria.com>
Date: Thu, 9 Oct 2008 19:25:42 +0100
Message-ID: <b807fe3e0810091125g4f3dfccfs8f12f1ff3e831e07@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "W3C Style List" <www-style@w3.org>

> Have you tried:
> a img {
>   vertical-align: bottom;
> }
> This will stop the color from showing below your images, since that comes
> from images being normally aligned to baseline rather than bottom.
>
> Of course, if you're using transparency in your images, you'll still have a
> problem.

That, and the padding.

> In the Generated and Replaced Content Module[1] there is the ::outside
> pseudo-element, which is what I think you're asking for.  It just happens to
> generate the pseudo-element around the *outside* of the element, rather than
> around the inside.

Yeah, that does the trick, thanks.
Received on Thursday, 9 October 2008 18:26:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:15 GMT