Skip to main content
100%

Shapes with SVG and CSS

✓ Published0🌍 Public
Ssslee8778960
Last edited Feb 1, 2020
Created on Feb 1, 2020
Forked from HTML Cars Report

This example demonstrates how to build basic geometric shapes using raw SVG elements and CSS. It shows circles, rectangles, lines, and a path rendered on an SVG canvas of 960 by 500 pixels. The code applies inline attributes like fill, stroke, stroke-width, and transform to style and position each shape, including a grouped set with yellow fill and black stroke. A purple rectangle and red circle highlight shape customization, while the stylesheet sets page margins and overflow properties.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes