[英]How to left/center/right align a table cell
On this page https://stephenb14.sg-host.com/heading/ i have 3 headings that are created using.在此页面上https://stephenb14.sg-host.com/heading/我有 3 个使用创建的标题。
display: table-cell;
I had to create them that way to display the borderline in the way i wanted.我必须以这种方式创建它们,以便以我想要的方式显示边界。 Now I am trying to align each heading to the left, right and center.现在我正在尝试将每个标题向左、向右和居中对齐。 I used:我用了:
text-align: right;
But it doesn't do anything.但它什么也没做。
How can i left/right/center the table cells?我如何左/右/居中表格单元格?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.