developer
JSON Path Tester
Test JSONPath expressions against JSON data. Supports dot notation, arrays, slicing, and wildcards.
Create gradient borders with live preview and generated CSS code. Customize colors, width, radius, and angle.
Gradient border CSS generator
Customize colors, width, radius, and style — get the CSS code instantly.
Preview
This box has a gradient border ✨
CSS code
How to use
CSS doesn't natively support gradient borders with the border property. This generator uses the background-image trick: it layers two backgrounds — a solid background-color clipped to the padding-box, and a gradient clipped to the border-box. With a transparent border, the gradient shows through where the border would be, creating the gradient border effect.
The generated CSS uses the background-clip property with two values: padding-box for the solid background and border-box for the gradient. This technique works in all modern browsers. The border must be set to transparent so the gradient background shows through. Adjust the angle to change the gradient direction — 0° goes bottom to top, 90° goes left to right, and 135° creates a diagonal.
More Developer tools
Related tools
developer
Test JSONPath expressions against JSON data. Supports dot notation, arrays, slicing, and wildcards.
developer
Convert between px, em, and rem CSS units. Set custom root and parent font sizes with a reference table.
developer
Visual flexbox layout builder. Configure direction, alignment, wrapping, and gap — copy the CSS.
converter
Convert JSON arrays to CSV and CSV to JSON instantly in your browser. Download CSV files with one click.