backgroundcssparallaxwebdesignMultiple Backgrounds and Borders with CSS 2.1 – Nicolas Gallagher — Blog & Ephemera
Multiple Backgrounds and Borders with CSS 2.1 – Nicolas Gallagher — Blog & Ephemera nicolasgallagher.com
Essentially, you create pseudo-elements using CSS (:before and :after) and treat them similarly to how you would treat HTML elements nested within your target element. But they have distinct benefits — beyond semantics — over the use of nested HTML elements.