Linear and radial gradient positioning - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Position

Description

Linear and radial gradient positioning

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">
body {<!--  w w  w .j  av a  2  s .co m-->
   height:100%;
}

html {
   height:100%;
}

#container {
   width:401%;
   height:100%;
   padding:0px;
   margin:0px;
}

.slide {
   width:26%;
   height:100%;
   float:left;
}

.one {
   background-image:-webkit-gradient(
   linear,
   left bottom,
   left top,
   color-stop(0, Chartreuse),
   color-stop(2, yellow)
   );
   background-image:url('https://www.java2s.com/style/demo/Google-Chrome.png'), radial-gradient(circle farthest-side at center top, blue 0, rgba(255,255,255,0) 100px), linear-gradient(to top, pink 0%, OrangeRed 100%);
}
</style> 
 </head> 
 <body> 
  <div id="container"> 
   <div class="one slide">
     Lorem 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials