WebControl.VerticalCenter

From Xojo Documentation

Property (As Integer )
aWebControl.VerticalCenter = newIntegerValue
or
IntegerValue = aWebControl.VerticalCenter

New in 2010r5

Supported for all project types and targets.

Specifies the vertical center of a control on a web page, which can be used to easily center a control on the page.

Notes

For example, to center a control vertically:

Button1.VerticalCenter = Self.Height / 2

(Self being a WebPage in this case.)