Overview
Sources
Libraries
Images API

Text Align text-align

Specify the horizontal alignment for multiline texts.

Values

  • left: text lines are aligned to the left.
  • center: text lines are center aligned.
  • right: text lines are aligned to the right.

The default value for this parameter is left.

Examples

By default text is aligned to the left, you can specify it explicitly with text-align=left parameter:

GET
https://assets.imglab-cdn.net/particles.jpeg?text-align=left
Rendering text over image with text aligned to the left using text-align parameter with left as value.
x px

In this example we are specifying the text be centered aligned with text-align=center:

GET
https://assets.imglab-cdn.net/particles.jpeg?text-align=center
Rendering text over image with text center aligned text with text-align parameter with center as value.
x px

Align the text to the right is possible with text-align=right:

GET
https://assets.imglab-cdn.net/particles.jpeg?text-align=right
Rendering text over image with text aligned to the right with text-align parameter with right as value.
x px