odin-css-foundations/02-class-id-selectors/style.css

20 lines
328 B
CSS
Raw Permalink Normal View History

body > *:nth-child(2n+1) {
background-color: pink;
font-family: Verdana, "DejaVu Sans", sans-serif;
}
body > *:nth-child(2) {
color: blue;
font-size: 36px;
}
body > *:nth-child(3) {
font-size: 24px;
}
body > *:nth-child(4) {
font-size: 24px;
background-color: lightgreen;
font-weight: bold;
}