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
NNisha Kunhikrishnan
Last edited Aug 18, 2019
Created on Aug 18, 2019

This example demonstrates how to draw and style basic SVG shapes—circles, rectangles, lines, and paths—using a combination of inline attributes and an external CSS stylesheet. The SVG canvas scales by a factor of 1.7, and shapes are grouped using `<g>` elements to apply shared fill and stroke properties or CSS classes. It showcases direct SVG markup and CSS selectors (e.g., `.lines path`) for controlling stroke color, width, and line joins, 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