வார்ப்புரு:Cs/doc
This is a documentation subpage for வார்ப்புரு:Cs. It contains usage information, categories and other content that is not part of the original வார்ப்புரு page. |
Description
தொகுThis template (Cs as Cell style) simplifies cell styling into tables.
First parameter is simply a string where characters (into any order) apply the following styles to cell:
- trbl (as top, right, bottom, left) apply individual black, 1px borders to cell:
- TMB (as Top, Middle, Bottom) apply vertical-align of content;
- LCR (as Left, Center, Right) apply align horizontal align.
So, simply applying the code style="border-right:1px solid black; border-bottom:1px solid black; vertical-align:top; text-align:center; ", you'll style your cell adding a right and a bottom border, a top vertical-align and a center horizontal align.
The second, optional parameter is consider additional css style.
An example:
{| style="border:3px solid black; border-collapse:collapse;" |{{cs|b}}|test||{{cs|rb}}|test||{{cs|b|background-color:yellow;}}|test |- |{{cs|}}| test||{{cs|r}}|test||test |- |{{cs||background-color:yellow;}}| test||{{cs|r}}|test||test |}
gets:
test | test | test |
test | test | test |
test | test | test |