Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a pure CSS div with a gradient background?

Tags:

People also ask

Can you do gradients in CSS?

CSS defines three types of gradients: Linear Gradients (goes down/up/left/right/diagonally) Radial Gradients (defined by their center) Conic Gradients (rotated around a center point)


Let's say the height of the div is 34px and the width is 480px. The div should look like this:

alt text

and I don't want it to actually use an image, just CSS. Is it possible?