css select descendant with class

Solutions on MaxInterview for css select descendant with class by the best coders in the world

showing results for - "css select descendant with class"
Louka
03 Feb 2016
1Select an element with the ID "id" and the class "class":
2#id.class {
3}
4example:
5<div>
6  <strong id="id" class="class">
7      Foobar
8  </strong>
9  <strong class="class">
10      Foobar
11  </strong>
12</div>
13=> Will select the first <strong> element
14
15Select all elements with the class "class",
16which are decendents of a element with an ID of "id":
17#id .class {
18}
19example:
20<div id="id">
21	<strong class="class">Foobar</strong>
22</div>
23=> Will select the <strong> element