Textiles: how do I center all text in 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 certain columns are centered or each cell is centered? or just one cell?

+3
source share
1 answer

One cell is centered as the next

|=. some-text |

See the documentation or the User Guide for more information .


Update

This is an example table tested on the github wiki .

Center of the whole table

Table {text alignment: center;}.

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

alt text http://i26.tinypic.com/apgunt.jpg

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 http://i32.tinypic.com/2mcgm15.png

Single cell formatting

{css code}. ( ).

.

|_{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* |

: : https://txstyle.org/

+3

Source: https://habr.com/ru/post/1755845/


All Articles