开发者

Textile: how do I center all the text in the table cells?

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开发者_JAVA百科 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|

Textile: how do I center all the text in the table cells?

Single cell center

|=. centered-cell-text|

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

Textile: how do I center all the text in the table cells?

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜