Skip to main content
Public

Share visualization

Loading preview…

Shapes with SVG 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 SVG and CSS

1
GGray1011
Last edited Jun 24, 2019
Created on Jun 24, 2019
Forked from HTML Cars Report

This example demonstrates basic geometric shapes rendered as SVG elements, with styling applied through both inline attributes and external CSS. It shows how circles, rectangles, lines, and a path can be combined and transformed using SVG’s `transform` attribute, including scaling and translation. The code uses plain SVG markup and CSS selectors, such as the `.lines` class, to control stroke properties like color and width. The HTML file includes the SVG directly, with no JavaScript libraries or data sources involved.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed