Trying to use svg pattern as a background image

Which phone should I buy Motorola One Fusion Plus vs Poco X2?
August 1, 2020
Kobo Nia Review: Compact way to read library books and EPUB files, no waterproofing
August 1, 2020

Trying to use svg pattern as a background image


Hi,

I've a svg image that's a pattern, it's a 15×15 empty square with bottom and right parts as a 1px line.

I'm trying to use it as a background image for it to repeat and form a grid.

I'd also like to be able to recolor it with css.

Here's my code :

body { color: #fff; background-color: #333; background-image: url("img/gridPattern.svg"); } 

It's not showing anything in my background.

But when I use my image in .png instead of .svg it works.

Could anyone help me make it work please ?

submitted by /u/NecroSyri
[link] [comments]

Source

Comments are closed.