Responsive SVG shape - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Responsive Layout

Description

Responsive SVG shape

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <title>Lorem ipsum</title> 
  <style>
#scalesvg {<!-- ww  w .j a  va 2s . c om-->
   width:21%;
}
</style> 
 </head> 
 <body translate="no"> 
  <svg id="scalesvg" viewbox="0 0 100 100"> 
   <path fill="turquoise" d="M 0 50 L 50 0 L 100 50 L 50 100 Z" /> 
   <text x="50" y="54" style="font-size: 12px; text-anchor: middle; ">
     Lorem ipsu 
   </text> 
  </svg>  
 </body>
</html>

Related Tutorials