Shapes with svg and CSS
✓ Published0🌍 Public
This example demonstrates how to draw basic SVG shapes—circles, rectangles, lines, and paths—and style them using CSS classes. The shapes are nested inside a scaled and translated SVG group, showing how transforms affect their positions. The code uses raw SVG elements within an HTML page and applies styling through an external stylesheet, where the `.lines` class sets stroke color and width, and a descendant selector customizes the path's line join.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed