CSS3 top to bottom Gradient

CSSWeb DevelopmentFront End Technology

You can try to run the following code to implement top to the bottom gradient in CSS3 −

Example

Live Demo

<html>
   <head>
      <style>
         #grad1 {
            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>
raja
Published on 02-May-2018 10:56:28
Advertisements