Use svg as background image - HTML CSS SVG

HTML CSS examples for SVG:Image

Description

Use svg as background image

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Autobase creates repeating SVG</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

.special-cell {<!--  ww  w  . j  a v a  2s  .c om-->
   background-color: gray;
   text-align: center;
   background-image: url("http://upload.wikimedia.org/wikipedia/commons/8/84/Konqi_svg.svg");
   fill='yellow' stroke-width='1'/></svg>);
   background-repeat: no-repeat;
}


      </style> 
 </head> 
 <body> 
  <div class="special-cell">
    TEST 
  </div>  
 </body>
</html>

Related Tutorials