Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

svg text align middle

<svg width="200" height="100">
  <rect x="0" y="0" width="200" height="100" stroke="red" stroke-width="3px" fill="white"/>
  <text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle">TEXT</text>    
</svg>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #svg #text #align #middle
ADD COMMENT
Topic
Name
6+4 =