Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion CSS selector for every <dd> under specific <dt>?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Stanimir Stamenkov  
View profile  
 More options Sep 7 2012, 3:47 pm
Newsgroups: mozilla.dev.tech.layout
From: Stanimir Stamenkov <s7a...@netscape.net>
Date: Fri, 07 Sep 2012 22:47:35 +0300
Local: Fri, Sep 7 2012 3:47 pm
Subject: Re: CSS selector for every <dd> under specific <dt>?
Fri, 7 Sep 2012 21:01:26 +0300, /Mampir/:

> [...]
> What I can do is:

>    dt.collapse + dd,
>    dt.collapse + dd + dd,
>    dt.collapse + dd + dd + dd {
>        display: none;
>    }

> I wish there was a better selector.  With a selector like the above
> one, only a limited amount of elements can be selected, and it feels
> like there could be a better way.

So you appear to look for General sibling selectors A ~ B:

https://developer.mozilla.org/en-US/docs/CSS/General_sibling_selectors

--
Stanimir


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.