Re: Request for last-visible-child selector

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 UTC