Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shape with SVG and CSS

Public visualization

Viewing a saved revision (read-only)

97b02a48dd8e4b909670d25227e29313

Shape with SVG and CSS

0 stars1🌍 Public
Cczhang746
Last edited Feb 17, 2023
Created on Feb 17, 2023
Forked from HTML Cars Report

This example demonstrates how geometric shapes can be composed and styled using SVG and CSS. It shows circles, rectangles, lines, and a path, with attributes like fill color, stroke, and stroke-width applied both inline and through CSS classes. The SVG is scaled and translated using transform groups, while CSS rules set stroke properties for the line and path elements. The code uses standard SVG elements (`circle`, `rect`, `line`, `path`) with inline styles and an external stylesheet (`styles.css`) that defines classes like `.lines` and `.lines path`.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.