Usage of linear-gradient() CSS function

Set a linear gradient as the background image, with linear-gradient() CSS function. You can try to run the following code to implement linear-gradient() function in CSS


Live Demo

<!DOCTYPE html>
         #demo {
            height: 200px;
            background: linear-gradient(green, orange, maroon);
      <p>Setting background as linear gradient.</p>
      <div id = "demo"></div>
karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know