VML V-Text-Anchor Attribute
This topic describes VML, a feature that is deprecated as of Windows Internet Explorer 9. Webpages and applications that rely on VML should be migrated to SVG or other widely supported standards.
As of December 2011, this topic has been archived. As a result, it is no longer actively maintained. For more information, see Archived Content. For information, recommendations, and guidance regarding the current version of Windows Internet Explorer, see Internet Explorer Developer Center.
Defines the vertical anchoring of text in a textbox. Read/write. String.
<v: element v-text-anchor=" expression ">
- top (default)
The text will be anchored to a vertical position in the textbox as indicated by the attribute value. The alignment of a text anchor only becomes evident if MSO-Fit-Text-To-Shape is False. This attribute is different from the Vertical-Align Style attribute, which is used for ideographic languages.
This attribute is used by Microsoft Office to store data in Web documents but does not render in Microsoft Internet Explorer 5 or greater.
VML Standard Attribute
The text is aligned to the bottom of the textbox.
<v:shape id="rect01" coordorigin="0 0" coordsize="200 200" strokecolor="red" fillcolor="red" style="top:10pt;left:10pt;width:50pt;height:50pt" path="m 1,1 l 1,200, 200,200, 200,1 x e"> <v:textbox style="v-text-anchor:bottom" id="mytextbox"> VML </v:textbox/> </v:shape>