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
FFoysal Ahmed Emon
Last edited Feb 8, 2020
Created on Feb 8, 2020
Forked from HTML Starter

This example demonstrates how to create basic SVG shapes—circles, rectangles, lines, and paths—with CSS styling and SVG grouping. It renders a static composition on a 960×500 SVG canvas, using transform attributes to reposition grouped elements and apply fill, stroke, and stroke-width properties. The code uses raw SVG elements within a React project, with a separate CSS file defining global styles and a `.lines` class that overrides stroke properties for line and path elements. The page loads from a minimal HTML file and displays placeholder text via JavaScript.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed