Skip to main content
100%

Shapes with SVG and CSS

✓ Published0🌍 Public
JJustinS1209
Last edited Aug 2, 2019
Created on Aug 2, 2019
Forked from HTML Cars Report

This example demonstrates a collection of basic geometric shapes—circles, rectangles, a line, and a path—rendered within a single SVG canvas. It shows how presentation varies: shapes appear both with default black fills and with explicit `fill` attributes, while a group applies a unified light-blue fill and black stroke. The example uses plain SVG markup alongside CSS to style elements, specifically targeting elements with the `.lines` class to set stroke color and width, and further styling the path within that group. A `transform` scales the entire composition.

AI-generated description
MIT Licensed

Similar vizzes