Help! I need to remove all borders and vertically center cell contents
-
Hi there.
By accident, who knows how, I have ruined my whole web site.
It’s a translation site, all with tables, 2 parallel columns, one language to the left, the other to the right.
I had it perfect, no borders at all, and the cell contents were aligned vertically to the middle, not top or bottom. I loved it.
I don’t know what happened to it, it’s gone. And I can’t find a way to reset it. I didn’t realize about the json we could export.
At this point, I found your code in www.remarpro.com:
table,
table > tbody > tr > td,
.tablepress tbody td,
.tablepress thead th {
border: none;
}And I dropped that into my wordpress theme customizer. It partially works for me, it removes lines “around” all tables in the whole site, which is ideal. However, it doesn’t remove internal lines, and it doesn’t vertically center the cell contents.
It seems to me, also, that right now, the cells are too close together, I thought I had more space before, a good 4 or 8 pixels overall vertically between cells…
I would really appreciate help. What could I add to the code above to remove all lines and vertically center the cell contents and separate them a bit more?
Thank you in advance.
PS – My site is in maintenance mode, I can’t link to it just yet. However, screenshot here: https://bit.ly/3k0zUMa
Shoot… I would then have to have some kind of code to exclude particular tables from the general styling… because I just this week started putting a little fine border, a one-cell table, around all my excerpts, and I would like to keep that: https://bit.ly/3COXuEu
And this is the table code I’m using for my excerpts:
<table class=MsoTableGrid border=1 cellspacing=0 cellpadding=0 style='border-collapse:collapse;border:none'> <tr> <td width=590 valign=top style='width:6.15in;border:solid silver 1.0pt; padding:8.65pt 8.65pt 8.65pt 8.65pt'> <p class=MsoNormal>CONTENTS OF EXCERPT CELL</p> </td> </tr> </table>
- The topic ‘Help! I need to remove all borders and vertically center cell contents’ is closed to new replies.