Skip to main content
100%

Shapes and Colors with SVG and CSS

✓ Published0🌍 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.

MIT Licensed

Similar vizzes