mercredi 8 avril 2015

Putting SVG elements next to each other

I have a <text> and a <rect> element nested in a svg element. I want the <rect> element to begin right after the <text> ends. But it looks like I have to position them using x and y.


Is there any way to put them next to each other like regular HTML elements ?



<svg>
<text>1200</text>
<rect width='120' height='12'></rect>
</svg>




Aucun commentaire:

Enregistrer un commentaire