File tree Expand file tree Collapse file tree 2 files changed +43
-35
lines changed
tutorials/css/combinators/descendant Expand file tree Collapse file tree 2 files changed +43
-35
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="utf-8 ">
5+ < title > Combinators — Descendant</ title >
6+ < link rel ="stylesheet " href ="../../../../styles/reset.css ">
7+ < link rel ="stylesheet " href ="../../../../styles/base.css ">
8+ < style >
9+ div em {
10+ border : 1px solid # ddd ;
11+ }
12+ </ style >
13+ </ head >
14+ < body >
15+ < header >
16+ < h1 > The Descendant Combinator</ h1 >
17+ < p > All < code > em</ code > elements that descend from a < code > div</ code > element get a grey border.</ p >
18+ </ header >
19+ < main >
20+ < p > Paragraph < em > 1</ em > </ p >
21+ < div >
22+ < ul >
23+ < li > Item 1</ li >
24+ < li > Item < em > 2</ em > </ li >
25+ < li >
26+ < ul >
27+ < li > Item < em > 2.1</ em > </ li >
28+ </ ul >
29+ </ li >
30+ </ ul >
31+ < ol >
32+ < li > Item 1</ li >
33+ < li > Item < em > 2</ em > </ li >
34+ < li >
35+ < ol >
36+ < li > Item < em > 2.1</ em > </ li >
37+ </ ol >
38+ </ li >
39+ </ ol >
40+ </ div >
41+ </ main >
42+ </ body >
43+ </ html >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments