سؤال

So... here is my table

| Locking | x | x | x | x |
| Public / Private | x | x | x |  Default: Private |

now, how do I change it so that certain columns are centered, or that every cell is centered? or just a single cell?

هل كانت مفيدة؟

المحلول

A single cell is centered as following

|=. some-text |

For details see documentation or User Manual.


Update

This is a table example tested on github wiki.

Whole table center

table{text-align:center;}.

table{border:1px solid black; text-align:center;}.
|This|is|a centered table|row|
|This|is|a|row-row-row-row|

alt text

Single cell center

|=. centered-cell-text|

table{border:1px solid black; }.
|This|is|a centered table|=. cell|
|This|is|a|row-row-row-row|

alt text

Single cell formatting

The cell must start with {css code}. (mind the space). Outline Every Cell In Every Row Of A Table Using Textile Formatting

E.g.

|_{border:2px solid black}. Provider |_{border:2px solid black}. Text Email Address|_{border:2px solid black}. Verified?|
|{border:2px solid black}. 3 River Wireless|{border:2px solid black}. 10digitphonenumber@sms.3rivers.net |{border:2px solid black}. *Not Verified* |

Try textile in a sandbox: Sandbox: https://txstyle.org/

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top