getElement(id).settings.center()
Makes the element appear centered on the horizontal axis.
Example:
newText("helloworld", "Hello world") .settings.center() .print()
Prints Hello world onto the screen, horizontally centered.
Design and run online experiments
getElement(id).settings.center()
Makes the element appear centered on the horizontal axis.
Example:
newText("helloworld", "Hello world") .settings.center() .print()
Prints Hello world onto the screen, horizontally centered.