Apply Gradient background color and image - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image

Description

Apply Gradient background color and image

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
div {<!--from   www  .j ava2  s .c o  m-->
   height:201px;
   background:url('http://www.java2s.com/style/demo/Google-Chrome.png') no-repeat 0 0,-moz-linear-gradient(center bottom , white, Chartreuse);
}
</style> 
 </head> 
 <body> 
  <div></div>  
 </body>
</html>

Related Tutorials