What Is the CSS Divider Generator?
Create decorative section dividers: waves, diagonals, triangles, curves, zigzags, arrows and tilts. Get an inline SVG plus the CSS that sizes it, for seamless section transitions.
Why Use This Tool?
Flat, hard-edged sections make a page feel blocky. Shaped dividers create visual flow between content areas. This tool generates eight divider shapes as inline SVG, with the CSS to size and flip them.
How to Use This CSS Divider Generator
- Choose a divider style — Pick one of eight shapes: Wave, Wave Alt, Diagonal, Triangle, Curve, Zigzag, Arrow or Tilt.
- Set the colors — Pick the top and bottom section colors that the divider will separate. The divider shape blends these visually.
- Adjust height and width — Set the divider's height in pixels; it always spans the full width of its container.
- Flip and rotate — Mirror the divider horizontally or vertically to control which direction the shape flows.
- Copy the code — Grab the complete HTML and CSS — the divider is generated as an inline SVG for crisp rendering at any size.
How each shape uses its height, measured
Every shape is drawn in a 960 × 160 box and stretched to your page width and the Height you set (preserveAspectRatio="none"). The shapes do not all use that box the same way, which is why the same Height looks very different from shape to shape. Worked out from each shape's path:
| Shape | Empty space at the top | Height of the edge itself | Across the width |
|---|---|---|---|
| Wave | 28% | 23% | 2 waves |
| Wave Alt | 48% | 23% | 3 waves |
| Curve | 50% | 50% | one arch |
| Zigzag | 50% | 50% | 6 teeth |
| Arrow | 50% | 50% | one point |
| Triangle | 0% | 100% | one peak |
| Diagonal | 0% | 100% | one slope |
| Tilt | 0% | 75% | one slope |
So at a Height of 80 px the Wave's crests and troughs are only about 18 px apart, with 23 px of the section above showing over it and 39 px of solid colour below; a Triangle at the same Height uses all 80 px. To get a wave of a given depth, set the Height to about four times that depth. Because the box stretches only horizontally, the number of waves never changes with screen width: the two waves of Wave are 195 px long each on a 390 px phone and 960 px long on a 1920 px desktop, so waves look tighter on mobile and gentler on wide screens.
No gap below the divider. A common problem with SVG dividers is a hairline of the background showing between the divider and the next section at some zoom levels. We placed the copied HTML and CSS between a white section and a section filled with the divider colour and checked the pixels along the joint in Chromium on October 12, 2026: across Wave, Diagonal and Curve, widths of 390 and 1366 px, pixel ratios of 1, 1.25, 1.5 and 2, and section heights that put the joint on a fractional pixel, none of the 48 combinations showed a seam. Set the divider's colour to exactly the next section's background colour for that to hold.
Frequently Asked Questions
📖 Learn More
Related Article How to Create CSS Section Dividers →Built by Derek Giordano · Part of Ultimate Design Tools