Align both top and bottom svg text vertical - HTML CSS SVG

HTML CSS examples for SVG:Text

Description

Align both top and bottom svg text vertical

Demo Code

ResultView the demo in separate window

<html>
 <head></head> 
 <body> 
  <svg height="800" width="100%"> 
   <text x="500" y="50" font-size="22" text-anchor="inherit" style="writing-mode:tb; glyph-orientation-vertical:90">
     my <!-- www .  ja  va2 s . com-->
   </text> 
   <text x="470" y="50" font-size="22" text-anchor="inherit" style="writing-mode:tb; glyph-orientation-vertical:90">
     my 
   </text> 
   <text x="440" y="50" font-size="22" text-anchor="inherit" style="writing-mode:tb; glyph-orientation-vertical:90">
     my 
   </text> 
   <text x="410" y="50" font-size="22" text-anchor="inherit" style="writing-mode:tb; glyph-orientation-vertical:90">
     my 
   </text> 
   <text x="380" y="50" font-size="22" text-anchor="inherit" style="writing-mode:tb; glyph-orientation-vertical:90">
     my 
   </text> 
   <text x="350" y="50" font-size="22" text-anchor="inherit" style="writing-mode:tb; glyph-orientation-vertical:90">
     my 
   </text> 
  </svg>  
 </body>
</html>

Related Tutorials