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
CConnor Trump
Last edited Oct 10, 2021
Created on Oct 10, 2021

This example displays a static collection of SVG shapes—circles, rectangles, lines, and a path—arranged in groups and scaled to fill the viewport. It demonstrates how Cascading Style Sheets (CSS) can style SVG elements, setting stroke colors, widths, and line joins via class selectors. The markup uses raw SVG elements like `<circle>`, `<rect>`, and `<path>`, with inline attributes for fill and translation. No JavaScript libraries are used; the page relies on plain HTML, CSS, and SVG rendering in the browser.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed