Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css hexagon with text inside

<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="900px" height="100" xmlns:xlink="http://www.w3.org/1999/xlink">
    <polygon class="hex" points="300,150 225,280 75,280 0,150 75,20 225,20" fill="#fa5" stroke="blue" stroke-width="5" transform="translate(10)"></polygon>
    <text x="160" y="160" 
        font-family="Verdana" 
        font-size="30"
        text-anchor="middle"
    >
    Any Text Here
    </text>  
</svg>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css #hexagon #text
ADD COMMENT
Topic
Name
8+2 =