Top to bottom Linear gradients - HTML CSS CSS

HTML CSS examples for CSS:Color

Description

Top to bottom Linear gradients

Demo Code

ResultView the demo in separate window

<html>
   <head>
      <style>
         #grad1 {<!--from w  w  w.j  av  a  2  s .  co  m-->
            height: 100px;
            background: -webkit-linear-gradient(pink,green);
            background: -o-linear-gradient(pink,green);
            background: -moz-linear-gradient(pink,green);
            background: linear-gradient(pink,green);
         }
      </style>
   </head>
   <body>
      <div id="grad1"></div>
   </body>
</html>

Related Tutorials