Left to right Linear gradients - HTML CSS CSS

HTML CSS examples for CSS:Color

Description

Left to right Linear gradients

Demo Code

ResultView the demo in separate window

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

Related Tutorials