Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

textile

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?

like image 383
NullVoxPopuli Avatar asked Nov 28 '25 19:11

NullVoxPopuli


1 Answers

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}. [email protected] |{border:2px solid black}. *Not Verified* |

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

like image 78
amra Avatar answered Dec 01 '25 00:12

amra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!