27th January 2020 at 17:11
? CSS pro tip
If you want to select SVG elements, use this CSS.
Super handy as SVG won’t fill the width if they’ve just got
max-width: 100% on them.
Gist: https://gist.github.com/hankchizljaw/958b1f46d39931bfaed63c2b3e09f59d
![CSS that reads: img[src*='.svg'] { min-width: 100%; }](https://hankchizljaw.imgix.net/svg-css-select.png?auto=format&q=60)
👋 Hello, I’m Andy and this is my little home on the web.
I’m the founder of Set Studio, a creative agency that specialises in building stunning websites that work for everyone and Piccalilli, a publication that will level you up as a front-end developer.
I’ve also got a CSS course called Complete CSS to help you get to a level in development that you never thought would be possible.
Back to blog