Skip to main content
100%

Shapws with SVG and CSS

✓ Published0🌍 Public
Iiascchwen
Last edited Nov 19, 2019
Created on Nov 19, 2019
Forked from Hello VizHub

This example demonstrates how basic SVG shapes—circles and rectangles—can be styled and grouped using inline attributes, CSS, and SVG’s `g` element. It shows three sets of shapes, where the first two use individual `fill` properties and the third applies a shared `fill` and `stroke` to a group. The code directly uses SVG elements like `circle`, `rect`, and `g` within an HTML document, with external CSS defining a full-screen layout. It highlights the simplicity of SVG’s declarative structure for static vector graphics.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes