Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
Jjblaskovich
Last edited Apr 30, 2020
Created on Apr 30, 2020
Forked from HTML Cars Report

This example displays a grid of basic SVG shapes—circles and rectangles—arranged in rows, with a line and polyline across the bottom. It demonstrates raw SVG markup using elements like `circle`, `rect`, `g`, `line`, and `path`, styled through a linked CSS stylesheet. The first row uses default fill, the second applies inline fill colors, and the third groups shapes with a shared `fill`, `stroke`, and `stroke-width` via a transform. The final group applies CSS classes to set stroke styling on the line and path, showing how SVG and CSS interact for visual formatting.

AI-generated description
MIT Licensed

Similar vizzes