Skip to main content
Public

Share visualization

Loading preview…

Shapes with SCG and CSS

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Shapes with SCG and CSS

1
SShuyu Zheng
Last edited Jan 11, 2021
Created on Jan 11, 2021
Forked from HTML Starter

This example demonstrates basic SVG shapes—circles, rectangles, lines, and paths—stylized through both inline attributes and CSS rules. The code uses raw SVG elements within an HTML document, with a `g` element applying transforms for scaling and translation. CSS classes like `lines` and `lines path` control stroke color, width, and line joining for the line and path elements, while inline `fill` and `stroke` attributes override or complement those styles. The visualization shows how SVG presentation attributes interact with CSS specificity and inheritance.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed