2
Hi, I have a <g>
within an SVG and would like to center its content, basically it would be like this:
+-----------------+ x-----------------+
| X | | |
| | | |
| | | |
| | ----> | x |
| | | |
| | | |
| | | |
+-----------------+ +-----------------+
Can you help me?
Help code
<g id="content" transform="translate(28.000000, 50.000000)">
<text id="header" font-family="Varela Rounded, sans-serif" fill="#334152">
<tspan x="65" y="35" font-weight="bold" font-size="16">COMPROVANTE</tspan>
<tspan x="174" y="2" opacity="0.8" font-size="10">
{{transacao?.registered | date:'dd.MM.yyy'}} | {{ transacao?.registered | date :'HH:mm'}}
</tspan>
</text>
<g>
In case I’d like to centralize this <text>
within the <g>
Add the code to the question with a [mcve]
– Sam
It’s pretty big, but okay.
– Arthur Gabriel Silva Arantes