# Text alignment
Text alignment functionality enables you to predefine the horizontal and vertical alignment of how the text is displayed in the cells.
# Horizontal and vertical alignment
To initialize Handsontable with predefined horizontal and vertical alignment, provide the alignment details for the
className cells in the form of a grid, configuring
className. Cells can be configured individually, or the entire grid can be configured. See the code sample below for an example.
Available class names:
Alignment changes can be tracked using the
# Basic example
The following code sample configures the grid to use
htCenter and configures individual cells to use different alignments.