HTML CSS examples for SVG:svg element
SVG and parent height of svg different
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .canvas {<!--from www .j a v a 2 s.c o m--> float: left; } .canvas { background-color: gray; } .container { background-color: red; } </style> </head> <body> <div class="container"> <svg class="canvas" style="height: 50px"></svg> </div> </body> </html>