W3C home > Mailing lists > Public > www-style@w3.org > August 2012

Re: Request for last-visible-child selector

From: Ms2ger <ms2ger@gmail.com>
Date: Wed, 15 Aug 2012 12:14:34 +0200
Message-ID: <502B768A.5010802@gmail.com>
To: www-style@w3.org, Greg Houston <gregory.houston@gmail.com>
On 08/15/2012 05:34 AM, Greg Houston wrote:
> This is a request for a last-visible-child selector. I often wish to
> remove the bottom margin from the last visible child in panels, but
> this becomes complicated if the actual last child has either
> display:none or visibility:hidden so that the element that loses it's
> margin is the hidden one rather than the one that is visible.

So how would you handle

:last-visible-child {
   display:none;
}

?

HTH
Ms2ger
Received on Wednesday, 15 August 2012 10:15:04 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:58 GMT