Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
AAndrewRiceMGW
Last edited Jan 3, 2021
Created on Jan 3, 2021
Forked from HTML Cars Report

This example demonstrates basic SVG shapes—circles, rectangles, lines, and a path—arranged in a 960×500 viewport. It shows how CSS classes and inline SVG styling control fill, stroke, and stroke-width properties, including a grouped set of shapes with a blue fill and black outline. The code uses raw SVG elements and a stylesheet with classes like `.lines` and `.highlighted` to apply styling. Rendering is static, with no interactivity or data binding, and the SVG is scaled via a transform attribute.

AI-generated description
MIT Licensed

Similar vizzes