<div style="background: linear-gradient(yellow, green);"> <p>conten of your webpage!</p> </div> /*this piece of code will provide you a transition. you can give it a direction by puttin "to right/left" in front of the colors*/