Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
YYedrup
Last edited Mar 8, 2020
Created on Mar 7, 2020
Forked from Hello VizHub

A grid of SVG shapes—circles and rectangles—demonstrates how CSS classes and inline styles set fill colors, strokes, and geometry within an SVG canvas. The example uses plain SVG elements like `<circle>`, `<rect>`, `<line>`, and `<path>`, with a `<g>` element applying a transform and a class named `lines` controlling stroke properties via the linked `styles.css` stylesheet. A commented-out line shows unused code, while the visible path uses `fill="none"` with a custom stroke.

AI-generated description

An example of SVG and CSS

MIT Licensed

Similar vizzes