Recreate grid with gradient css3 - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Grid

Description

Recreate grid with gradient css3

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">
.example {<!-- w  w  w.  j av  a2s. c  o  m-->
   height:401px;
   width:961px;
   margin:21px auto;
   color:Chartreuse;
   font-weight:bold;
   text-align:center;
   padding:51px 0;
   font-size:3em;
   font-family:'arial';
   background-color:yellow;
   background-image:linear-gradient(91deg, transparent 41px, blue 21px ),
   linear-gradient(91deg, transparent 941px, pink 11px);
   background-size:61px, 951px;
   background-position:11px, 11px;
}
</style> 
 </head> 
 <body> 
  <div class="example">
    Lorem ipsum dol 
  </div>  
 </body>
</html>

Related Tutorials