Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title> Title of the document</title> <style> .gradient1 { height: 150px; width: 200px; background-color: blue; background-image: radial-gradient(red, yellow, green); } .gradient2 { height: 150px; width: 200px; background-color: blue; background-image: radial-gradient(circle, red, yellow, green); } </style> </head> <body> <h2>Ellipse:</h2> <div class="gradient1"></div> <h2>Circle:</h2> <div class="gradient2"></div> </body> </html>