The new PCIbex Farm is here! Be sure to check out all of its new features and changes.

Link Search Menu Expand Document

standard.center

description

Makes the element appear centered on the horizontal axis.

syntax

getX(ELEMENT_NAME).center()

What does getX() mean?


example(s)


@
@newText("helloworld", "Hello world")
$    .center()
@    .print()
  • Prints Hello world onto the screen, horizontally centered.