Skip to main content
Public

Share visualization

Loading preview…

SVG with 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

SVG with CSS

0
Ii211367
Last edited Sep 18, 2023
Created on Sep 18, 2023

This example demonstrates basic SVG shapes—circles, rectangles, lines, and a path—arranged in groups and transformed by scaling and translation. It shows how shape styling is applied directly via SVG attributes like `fill` and `stroke`, and how CSS classes from an external stylesheet selectively override properties: the `.lines` class sets stroke color and width, while `.lines path` overrides the stroke with a custom color and rounded joins. The rendering uses native SVG elements within an HTML page.

AI-generated description

An example including some commonly used features of SVG.

Comments

Sign in to join the discussion.

MIT Licensed