வார்ப்புரு:Cs/doc

விக்கிமூலம் இலிருந்து

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
"https://ta.wikisource.org/w/index.php?title=வார்ப்புரு:Cs/doc&oldid=492685" இலிருந்து மீள்விக்கப்பட்டது