html - SVG text not centering firefox -
i have svg logo text, text centered. , works fine in chrome , ie not firefox, text moved left.
<text transform="matrix(0.9287 0 0 1 60.9023 137.7646)"> <tspan x="0" y="0" fill="#ffffff" stroke="#fafaf8" stroke-miterlimit="10" font-family="'consolas'" font-size="71.5163" letter-spacing="9.691">soc</tspan> <tspan x="-24.809" y="85.819" fill="#ffffff" stroke="#fafaf8" stroke-miterlimit="10" font-family="'consolas'" font-size="71.5163" letter-spacing="9.691">king</tspan> </text>
please help.
use text-anchor="middle"
center text (then x coordinate points center)
Comments
Post a Comment