I have used these 2 types of solutions for this problem but the first solution is the best for me using top left right
svg g #t2{
/*you can use top left right like the example below*/
top:100px;
left:200px;
}
<svg id="main">
<g id="g2">
<circle id="c2" class="resize"/>
<rect id="r2" class="resize"/>
<text id="t2" class="resize">texthing</text>
</g>
there is also another way of doing this is using transform translate like: