Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
TTebid Quinsy
Last edited Jan 1, 2021
Created on Dec 21, 2020
Forked from Hello VizHub

This example demonstrates how fundamental SVG shapes—circle, rect, line, and path—can be styled and composed using CSS and SVG attributes. It shows grouped elements with transformed positions, inherited fill and stroke properties, and class-based styling for lines and paths. The code uses raw SVG markup with inline presentation attributes like `fill`, `stroke`, and `stroke-width`, combined with CSS rules targeting classes such as `.lines`. The rendering is purely SVG, with no external libraries, and the page layout is simplified through CSS margin resets.

AI-generated description

Vizhub

  • HTML, CSS Recap
  • Shapes with SVG and CSS
MIT Licensed

Similar vizzes