imgix APIs
Rendering API
Text Align

Text Align

txt-align

Sets the alignment of the text overlay within the image.

Possible values are left, center, or right for the horizontal positioning of the the text, and top, middle, or bottom for the vertical positioning. Values can be combined by separating them with commas. The default is bottom,right.

  • Unset: Default. Position to the bottom right of the base image.
  • top: Align to the top of the base image.
  • middle: Align to the vertical middle of the base image.
  • bottom: Align to the bottom of the base image.
  • left: Align to the left side of the base image.
  • center: Align to the horizontal center of the base image.
  • right: Align to the right side of the base image.