Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes and Colors with SVG and CSS

Public visualization

Shapes and Colors with SVG and CSS

0 stars0🌍 Public
JJiakunGong
Last edited Jan 16, 2020
Created on Jan 16, 2020

This example demonstrates a collection of basic SVG shapes—circles, rectangles, lines, and a path—arranged in a grid and colored through different CSS and inline styling techniques. It shows how stroke, fill, and stroke-width properties apply variously via presentation attributes, group-level cascading styles, and a dedicated `.lines` class. The SVG is grouped and scaled using a `transform` attribute, while the stylesheet employs CSS selectors like `.lines path` to target specific elements. The rendering relies entirely on SVG and plain CSS, with no JavaScript libraries involved.

AI-generated description

An example including some commonly used features of SVG.

Comments

Sign in to join the discussion.

MIT Licensed