File: chained1.css

package info (click to toggle)
liborcus 0.17.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 12,756 kB
  • sloc: cpp: 57,125; xml: 8,917; sh: 4,316; makefile: 2,152; python: 1,804
file content (15 lines) | stat: -rw-r--r-- 186 bytes parent folder | download | duplicates (8)
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;
}