Skip to main content
100%

Shapes with svg and css

✓ Published0🌍 Public
HHarshit Birla
Last edited Jul 10, 2019
Created on Jul 10, 2019
Forked from Hello VizHub

This example demonstrates basic SVG shapes—a circle and a rectangle—styled with CSS and rendered in a fixed 960 by 500 viewport. The shapes appear twice: first as a standalone circle and rect, then grouped together inside an SVG `<g>` element with a green stroke applied to the group. The second set uses inline attributes like `fill="red"` and `fill="#719bde"`, while the CSS file sets global margins and hides overflow. The code uses raw SVG elements (`<circle>`, `<rect>`, `<g>`) with no JavaScript libraries or data binding.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes