Read The full post on Code Pen
Notes:
- CSS Variables are used for demonstration purposes and future prosperity, they are yet to be supported across all browsers and rendering engines!
reversed&verticalvariants listed below are verbose for demonstration purposes
- for simple multi directional variants, use the
rotate()function as needed- see the
style.cssof each method for a detailed example- Use with
transparentcolors (e.g. to overlay an image, or content) will requireabsoluteor manual positioning:
- see the
layout.cssfor a detailed example
| Method | Simple CSS | Generated Content | Cross Browser Support | Performance |
|---|---|---|---|---|
| Borders | β | β | β | β |
| CSS Shapes | β | β | β | β |
| Gradient Background Image | β | β | β | β |
| SVG Background Image | β | β | β | β |
| SVG Mask | β | β | β | β |
| CSS3 2D Transforms | β | β | β | β |
- Simple CSS
- π₯ Borders
- π₯ Gradient Background Image
- π₯ CSS Shapes
- Generated Content
- π₯ Borders
- π₯ Gradient Background Image
- π₯ SVG Background Image
- Cross Browser Support
- π₯ Borders
- π₯ SVG Background Image
- π₯ CSS Shapes
- Performance
- π₯ Gradient Background Image
- π₯ SVG Background Image
- π₯ Borders