All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Building Adaptive SVGs with <symbol>, <use>, and CSS Media Queries

By

[email protected] (Andy Clarke)

7mo ago· 10 min readen

Summary

This technical article by Andy Clarke demonstrates how to create adaptive SVGs that respond to different screen sizes using SVG <symbol> and <use> elements combined with CSS media queries. The author explains his methodology for optimizing SVG graphics to work responsively across various devices, using a 1959 cartoon episode as a practical example to illustrate the techniques.

Key quotes

· 5 pulled
SVGs, they scale, yes, but how else can you make them adapt even better to several screen sizes?
Web design pioneer Andy Clarke explains how he builds what he calls 'adaptive SVGs' using <symbol>, <use>, and CSS Media Queries.
I've written quite a lot recently about how I prepare and optimise SVG code to use as static graphics or in animations.
I love working with SVG, but there's always been something about them that bugs me.
To illustrate how I build adaptive SVGs, I've selected an episode of The Quick Draw McGraw Show called 'Bow Wow Bandit,' first broadcast in 1959.
Snippet from the RSS feed
SVGs, they scale, yes, but how else can you make them adapt even better to several screen sizes? Web design pioneer Andy Clarke explains how he builds what he calls “adaptive SVGs” using ``, ``, and CSS Media Queries.

You might also wanna read