4 ms·
Personally, I'd prefer a more explicit declaration, which is also legitimate CSS, as in: html > body > h1 { content: "Example"; } html > body > h1 + p { co
by masswerk 7y ago
Personally, I'd prefer a more explicit declaration, which is also legitimate CSS, as in:
html > body > h1 { content: "Example"; }
html > body > h1 + p { content: "First Paragraph"; }
html > body > h1 + p + p ( content: "Second Paragraph"; }
html > body > h1 + p + p + ul > li:first-child { content: "A List Item"; }
(etc)
Mind how missing content or copy text, like the second paragraph being omitted, may be easily detected!