What is a CSS gradient?
A CSS gradient is a smooth transition between two or more colours defined in CSS without using an image file. Types: linear-gradient() (directional), radial-gradient() (circular) and conic-gradient() (pie chart style).
What is the CSS syntax for a gradient?
Linear: background: linear-gradient(90deg, #color1, #color2); Radial: background: radial-gradient(circle, #color1, #color2); Add more colour stops as additional comma-separated values.
How do I create a transparent gradient?
Use rgba() or hex with alpha for your colour stops. Example: linear-gradient(to right, rgba(91,78,240,1), rgba(91,78,240,0)) creates a gradient that fades to transparent.
What browsers support CSS gradients?
All modern browsers fully support CSS gradients: Chrome, Firefox, Safari, Edge and Opera. Internet Explorer 10+ has basic support. No prefix is required for modern browsers.