Align-Center Column Class: Difference between revisions

From HorizonXI Wiki
(Created page with "This class can be used to give a certain column(s) the following formatting: <pre>align="center"</pre> To use, simple use the following class where the # is replaced with the number of the column you wish to center align: <pre> class="center-col-#"</pre> The class can be used for any column of a table, providing there is no more than 8 columns. == Example == {| class="horizon-table table-md general-table center-col-2 center-col-4" ! width="25%" | Column 1 ! width="25...")
 
No edit summary
Line 8: Line 8:


== Example ==
== Example ==
{| class="horizon-table table-md general-table center-col-2 center-col-4"
{| class="horizon-table table-md editing-table center-col-2 center-col-4"
! width="25%" | Column 1
! width="25%" | Column 1
! width="25%" | Column 2
! width="25%" | Column 2

Revision as of 11:34, 15 November 2023

This class can be used to give a certain column(s) the following formatting:

align="center"

To use, simple use the following class where the # is replaced with the number of the column you wish to center align:

 class="center-col-#"

The class can be used for any column of a table, providing there is no more than 8 columns.

Example

Column 1 Column 2 Column 3 Column 4
Aligned left text Aligned center text text text