Click here to Skip to main content
15,881,881 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I rotate svg <tspan> element to vertical mode?
I want to rotate vertical mode two
HTML
<tspan>
element from
HTML
<text>
element.

my sample -
HTML
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink">
    <text y="10">
        <tspan x="10">Vertical Text (up 2 down mode)</tspan>
        <tspan x="20">Vertical Text (down 2 up mode)</tspan>
    </text>
</svg>


Sample Image for SVG Design

Thank you,
MinChanSike
Posted
Updated 3-Sep-14 1:18am
v2

1 solution

SVG elements have a transform attribute, this attribute can be used to rotate the element...
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/transform[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900