Skip to main content
kahsbnxasxwasx
Known Participant
January 26, 2012
Answered

How to center text vertically

  • January 26, 2012
  • 1 reply
  • 1738 views

__p.verticalAlign=VerticalAlign.MIDDLE;Useless

This topic has been closed for replies.
Correct answer mjzhang

hi, 

Please see TLF doc for verticalAlign, it's align based on the container. 

7.6.7. verticalAlign attribute Specifies the vertical alignment of the lines within the container.

The lines may appear at the top of the container, centered within the container, at the bottom, or evenly spread out across the depth of the container.verticalAlign is non–inheriting.

Valid values include:

• top Specifies alignment with the top edge of the frame.

• middle Specifies alignment with the middle edge of the frame.

• bottom Specifies alignment with the bottom edge of the frame.

• justify Specifies vertical line justification with the frame.

• inherit Specifies alignment should be inherited.

1 reply

mjzhangCorrect answer
Participating Frequently
January 29, 2012

hi, 

Please see TLF doc for verticalAlign, it's align based on the container. 

7.6.7. verticalAlign attribute Specifies the vertical alignment of the lines within the container.

The lines may appear at the top of the container, centered within the container, at the bottom, or evenly spread out across the depth of the container.verticalAlign is non–inheriting.

Valid values include:

• top Specifies alignment with the top edge of the frame.

• middle Specifies alignment with the middle edge of the frame.

• bottom Specifies alignment with the bottom edge of the frame.

• justify Specifies vertical line justification with the frame.

• inherit Specifies alignment should be inherited.

kahsbnxasxwasx
Known Participant
January 29, 2012

thank you very much