chrisnajman / styling-svgs

CSS limitations when styling SVGs

Home Page:https://chrisnajman.github.io/styling-svgs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Styling SVGs

CSS Limitations

  • If all path, rect and line elements of an SVG share the same color, stroke-width etc, then you can use a sprite.
  • If individual paths contain different colors, stroke-widths etc, you have to use an inline SVG or it will not display.

See Styling SVGs Git Page

Testing

Tested on:

  • Windows 10
    • Chrome
    • Firefox
    • Microsoft Edge

The page has been tested in both browser and device views.

About

CSS limitations when styling SVGs

https://chrisnajman.github.io/styling-svgs/

License:MIT License


Languages

Language:CSS 51.8%Language:HTML 35.0%Language:JavaScript 13.2%