CSS3 linear gradients from top to bottom direction Examples




CSS3 linear gradients from top to bottom direction Examples

<!DOCTYPE html>
<html>
   <head>
      <title>Example of Linear Gradients from Top to Bottom</title>
      <style type="text/css">      
         .gradient {
            width: 400px;
            height: 300px;
            background: blue;
            background: -webkit-linear-gradient(blue, yellow);
            background: -ms-linear-gradient(blue, yellow);
            background: linear-gradient(blue);
         }
      </style>
   </head>
   <body>
      <div class="gradient"></div>
   </body>
</html>

Output