Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4
Linear gradient starts from one end to its opposite end. Radial gradient starts from center to outwards
27th Nov 2020, 11:11 AM
Steve Sajeev
Steve Sajeev - avatar
+ 5
try it out bro, you would get two different results, and you would understand yourself create two divs in html <div class="linear box">Linear</div> <div class="radial box>Radial</div> grab both divs using class .box, and give equal heights and widths to make them a square. .box { height: 200px; width: 200px; } .linear { background-image: linear-gradient(orange, cyan) /* you can add another value before the first color, that can be "to left", "to right", "to bottom" or "to top"*/ /* You can add as many colors as you wish after "cyan". */ } .radial { background-image: radial-gradient(orange, cyan); }
27th Nov 2020, 10:50 AM
maf
maf - avatar
+ 3
Your welcome.. mark my or any other answer as correct, so the question can be closed
27th Nov 2020, 12:35 PM
Steve Sajeev
Steve Sajeev - avatar