வார்ப்புரு:Cs
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 |