Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes with SVG and CSS

Public visualization

Shapes with SVG and CSS

0 stars1🌍 Public
SSwetha Susan George
Last edited Aug 12, 2020
Created on Aug 12, 2020
Forked from Different Cars

This example showcases basic geometric shapes—circles, rectangles, lines, and paths—rendered within an SVG canvas. It demonstrates how CSS classes, such as `.lines`, can control stroke color and width, while SVG presentation attributes like `fill`, `stroke`, and `transform` (including `scale` and `translate`) style individual elements. The code uses raw SVG markup in an HTML file, linked to an external stylesheet, to combine vector graphics with cascading style rules.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed