Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes with SVG ans CSS

Public visualization

Shapes with SVG ans CSS

0 stars0🌍 Public
MMateus Farias
Last edited Jun 10, 2020
Created on Jun 10, 2020
Forked from Cars Report

This example demonstrates basic SVG shapes—circles, rectangles, lines, and paths—styled through both inline SVG attributes and external CSS. It shows how CSS classes, such as `.lines`, override default SVG presentation properties like `stroke` and `stroke-width`, while `fill` and `stroke` attributes set directly on elements take precedence. The visualization is rendered entirely with SVG in static HTML, using no JavaScript libraries, and includes a group with a translation transform to position shapes collectively. The code also highlights inheritance of styling from parent `<g>` elements to child shapes.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed