.blue { color: slateblue; }
.green { color: olivedrab; }
.red { color: orangered; }
.parent {
font-weight: bold;
color: slateblue;
}
.parent > div { color: olivedrab; }
.parent > :last-child { color: inherit; }
p:not(:first-child) {
display: initial;
}
.parent { color: slateblue; }
.parent > div { color: olivedrab; }
.parent :last-child { color: unset; }
p:not(:first-child) {
display: unset;
}
.parent { color: slateblue; }
.parent > div { color: olivedrab; }
.parent :last-child { color: revert; }
p:not(:first-child) {
display: revert;
}
.parent { color: slateblue; }
button:not(:first-of-type) {
all: unset;
}
button:last-child {
padding: 0.6em 1em;
background-color: white;
border: 2px solid #ddd;
border-radius: 0.4em;
cursor: pointer;
box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.16);
}
CSS Reset
Reset | 코드 | 적용예 |
---|---|---|
(없음) | 👉 샘플 보기 | |
Eric Meyer (2.0) | 👉 링크 | 👉 샘플 보기 |
Normalize.css | 👉 링크 | 👉 샘플 보기 |
Elad Shechter | 👉 링크 | 👉 샘플 보기 |