ਸਮੱਗਰੀ 'ਤੇ ਜਾਓ

ਫਰਮਾ:Table class/import/doc

ਵਿਕੀਸਰੋਤ ਤੋਂ


This template imports a series of additional styling for tables implemented as CSS classes.

{{table class/import}}

to import the main styles in a page.

Additional parameters can be used to specify additional stylesheets to import (up to 8, (The full page name (Wiki style) must be given, using underscores for spaces.)

Use {{tc|classname1|classname2|..}} or class="classname1 classname2 classname3" to apply these to elements in the table, in the same location an equivalent {{ts}} call would be placed, for in-line styles.

CSS classes currently available or implemented (in the main style-sheet):-

class Scope & location of class invocation. Effect and notes.
__boxc table Table is centered on page, with a 1px solid black border around it, collapsing cell borders.
__cols table A 1px solid black right border is present on every table cell.
__cell_vtp table, cell Cells in the table are top aligned, This class can also be applied to table cells indvidually.
__ft table (Shorthand for figure table), Cells are right aligned, and to the bottom of a cell vertically. Table header entries are centerd.
__ftlabelt table Modifies the first "data" cell of a row to be left aligned at the top of a cell, for example as a label.
__ftlabelm table Modifies the first "data" cell of a row to be left aligned in the middel of a cell, for example as a label.
__ftlabelb table Modifies the first "data" cell of a row to be left aligned at the bottom of a cell, for example as a label.
__label cell Left aligned text, aligned to the top of the table cell vertically.
__grid table A 1px solid border is applied to every cell in the table, and around the table as a whole, indvidual cell borders are collapsed.
__floatc table The table is centered within the page (or parent element) , equivalent formating to {{ts|mc}}
__ba table A 1 px solid border is placed around the entire table.
__bt row, cell A 1 px solid border applied to the top of the appropriate element, equivalent formatting to {{ts|bt}}
__bb row, cell A 1 px solid border applied to the bottom of the appropriate element, equivalent formatting to {{ts|bb}}

If additional styles are added, please update this documentation.