Skip to main content
100%

Shapes with SVG and CSS

✓ Published0🌍 Public
Ppcbt1125
Last edited Nov 1, 2019
Created on Nov 1, 2019
Forked from Hello VizHub

This example demonstrates basic SVG shape rendering with CSS styling. It shows circles and rectangles positioned directly on an SVG canvas, with colors applied through presentation attributes like `fill="red"` and inline styles, as well as a `<g>` group that applies a shared `fill="blue"` to multiple shapes. The code uses native SVG elements (`circle`, `rect`, `g`) with a `transform` attribute for translation, plus an external stylesheet for global page styling. No data source or dynamic behavior is present; all shapes are static and defined directly in the HTML markup.

AI-generated description
MIT Licensed

Similar vizzes