<!DOCTYPE HTML> <html> <body> <div style="width:100px; height:100px; background:linear-gradient(to left, red, green);"></div> <div style="width:100px; height:100px; background:linear-gradient(to right, red, green);"></div> </body> </html>