Loading lesson path
Formula
text - align property is used to set the horizontal alignment of the content in < th > or < td >.This property can have one of the following values: left - Aligns the text to the left right - Aligns the text to the right center - Centers the text
Formula
By default, the content of < th > elements are center - aligned and the content of < td > elements are left - aligned!Formula
To center - align the content of < td > elements, use text - align: center$100
$150
$300
Formula
Center - align < td > elements:td
{
text-align: center;
}Formula
To force the content of < th > elements to be left - aligned, use text - align: left on < th >elements:
$100
$150
$300