Re: Selector for tags with a certain child.

> 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 UTC