简体   繁体   中英

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.

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?

Add this to your CSS:

.et_pb_section_1.et_pb_section { display: flex; justify-content: center;}

it should work as I've tested it on your site:

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM