blob: 3b4dcae8460e631684da0b598e817f7fd82988af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* descendant selector */
div p {
background-color: yellow;
}
/* direct child */
div > p {
background-color: blue;
}
/* next sibling */
div + p {
background-color: red;
}
|