Diagonal Linear gradients starts at top left and right - HTML CSS CSS

HTML CSS examples for CSS:Color

Description

Diagonal Linear gradients starts at top left and right

Demo Code

ResultView the demo in separate window

<html>
   <head>
      <style>
         #grad1 {<!--from w  w w .  j a  v a 2  s.c  om-->
            height: 100px;
            background: -webkit-linear-gradient(left top, red , blue);
            background: -o-linear-gradient(bottom right, red, blue);
            background: -moz-linear-gradient(bottom right, red, blue);
            background: linear-gradient(to bottom right, red , blue);
         }
      </style>
   </head>
   <body>
      <div id="grad1"></div>
   </body>
</html>

Related Tutorials