Skip to content

Inlining SVG background images in CSS with custom properties

“Here’s a tiny lesson that I picked up from Trys that I’d like to share with you… I was working on some upcoming changes to the Clearleft site recently. One particular component needed some SVG background images. I decided I’d inline the SVGs in the CSS to avoid extra network requests. It’s pretty straightforward…”

Source: adactio.com | Read full article