public marks

PUBLIC MARKS from decembre with tags tricks & svg

01 March 2019 08:45

CSS - TRICKS - Coloring SVGs in CSS Background Images by Noah Blon on CodePen

(via)
I love using SVG in CSS background images but it sucks that you can't alter the fill color easily within your CSS. Here are a few ways around that. # SVG in CSS backgrounds: Using SVG in CSS backgrounds allows you to use CSS's powerful background sizing and position properties. This makes sizing SVGs much simpler because the image easily scales to the size of your element. Plus you don't have SVG cluttering up your markup. There are also some nice performance benefits over inline SVG. An SVG in a background image can be cached. Using image sprites and embedding SVG as a data URI can also improve performance.

decembre's TAGS related to tag tricks

about:config +   audio +   background +   bookmark +   browser +   configuration +   content +   conversion +   convert +   convertir +   css +   dev +   download +   dvd +   effect +   effet +   example +   favoris +   firefox +   fix +   hover +   html5 +   image +   javascript +   jQuery +   online +   optimiser +   placeholder +   player +   podcast +   podcasting +   problem +   radio +   record +   remote +   resize +   scroll +   scrollbar +   search +   snapshot +   solution +   subtitle +   svg +   text +   textarea +   tips +   truc +   tutorial +   tutoriel +   video +   video:player +   vlc +   wallpaper +   watermarkmark +   web +   web:radio +   webcam +