Help:Table: Difference between revisions
expanded, still something to do |
→for whole columns: text-align classes for columns expanded up to (left|center|right)-12 |
||
| Line 157: | Line 157: | ||
==== for whole columns ==== | ==== for whole columns ==== | ||
Add a the appropriate class(es) to the <code>class="wikitable"</code> statement at beginning of the table. Their name starts with the alignment specification (<code>left</code>, <code>center</code>, or <code>right</code>) and a number (1 to | Add a the appropriate class(es) to the <code>class="wikitable"</code> statement at beginning of the table. Their name starts with the alignment specification (<code>left</code>, <code>center</code>, or <code>right</code>) and a number (1 to 12) after a minus sign (<code>-</code>). | ||
If you want to override the default text (left) alignment to make the first column right-aligned and second column center-aligned, add the class <code>"right-1"</code> and <code>"center-2"</code> to the <code>class="wikitable"</code> statement at beginning of the table. | If you want to override the default text (left) alignment to make the first column right-aligned and second column center-aligned, add the class <code>"right-1"</code> and <code>"center-2"</code> to the <code>class="wikitable"</code> statement at beginning of the table. | ||