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
BBraja Gopal Das
Last edited Apr 8, 2019
Created on Apr 8, 2019

This example demonstrates a collection of basic SVG shapes—circles, rectangles, lines, and paths—styled through CSS and inline attributes. It shows how SVG elements inherit properties like fill and stroke from parent `<g>` groups and how CSS classes target specific elements, such as the `.lines` class, to apply stroke width and line-join styles. The graphic uses a coordinate system transformed by `scale` and `translate` operations to position shapes, rendering directly in the browser via SVG markup within an HTML file.

AI-generated description

An example including some commonly used features of SVG.

Comments

Sign in to join the discussion.

MIT Licensed