use element to clone SVG - HTML CSS SVG

HTML CSS examples for SVG:Circle

Description

use element to clone SVG

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">

svg { width: 100px; height: 100px; }


      </style> 
 </head> <!--from   w  w w.j a  v a 2 s .  com-->
 <body> 
  <svg id="map" viewbox="0 0 100 100"> 
   <circle cx="50" cy="50" r="20" fill="lime" /> 
  </svg> 
  <svg id="bar" viewbox="0 0 100 100"> 
   <use xlink:href="#map" /> 
  </svg>  
 </body>
</html>

Related Tutorials