CSS does not support gradient values directly in the border-color property, but there are two reliable techniques to achieve gradient borders: border-image and background-clip with padding. FixTools generates the CSS for both approaches so you can use whichever suits your design.
Generates both border-image and background-clip techniques
Configurable border width and radius
Live preview of the gradient border effect
CSS Tool
All processing happens in your browser — your files are never uploaded to any server.
🚀Open Gradient100% Free · No account · Works on any device
Generate gradient border CSS using border-image: border: 4px solid; border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1; — or use the background-clip technique for rounded corners.
Step-by-step guide to css gradient border generator:
Choose the border-image technique
For elements without border-radius, use: border: 4px solid transparent; border-image: linear-gradient(135deg, #667eea, #764ba2) 1;
Or use the background-clip technique for rounded corners
For rounded gradient borders: background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #667eea, #764ba2) border-box; border: 4px solid transparent; border-radius: 12px;
Set border width
Adjust the border: 4px solid transparent value to change the border thickness.
Copy and apply the CSS
Copy the generated CSS and apply it to your target element class.
More use-case guides for the same tool:
Open the full Gradient — free, no account needed, works on any device.
Open Gradient →Free · No account needed · Works on any device