Tagged: alignment in columns, table layout
Hi,
I could not find the solution in the documentation or forum.
I use table layout, standard rows and columns with text
I do have more lines of text per cell and want the text in each cell centered in the middle and not start on top of the cells
How to make the text in each cell centered in the middle (seen from top to bottom and from left to right)
Note: on this page the link to the youtube tutorial (on the bottom of the page this is mentioned) is not working. the tutorial is set to private:https://kriesi.at/documentation/enfold/table/
Hi JannyPolak,
Can you give us a link to you page with the table? so we can inspect it.
You can post the link in private content, if you don’t want to show the link in public.
Best regards,
Nikko
Hi,
An examples is the table on top of this page: https://www.rietreiger.nl/prijzen-en-boeken/
See columns 2 and 3. I would like to center the texts in the cells
Hi JannyPolak,
Please try to add this CSS code in Enfold > General Styling > Quick CSS:
.avia-table tr th:first-child,
.avia-table tr td:first-child {
text-align: center;
}
Best regards,
Nikko
Hi Nikko
It doesn’t change the layout unfortunately
even after cleaning cache
any other suggestion?
rgds, Janny
Hi,
Thanks for the link to your page, when I check the cell items are horizontally centered:
so i assume that you wanted them also vertically centered, if so please add this css:
#main .avia-table td {
vertical-align: middle;
}
This is the expected results:
After applying the css, please clear your browser cache and check.
Best regards,
Mike
Many thanks, it works fine!
Hi JannyPolak,
I’m glad that Mike could help you :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko