KITASENJU DESIGN BLOG

memo, html, javascript, unity

Entries from 2023-12-05 to 1 day

Raw svg code for css background

I didn't know I can use raw (non-escaped) svg for css background. background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="25" cy="25" r="25" fill="blue" /><circle cx="75" cy="25" r="25" fill="blue" /></circle></circle></svg>

"FOOTER"