vertical interval in the tables

Posted in: Newspaper
Post count: 73

Hello!

Please tell me how to increase the vertical interval (indentation) in the tables?

I need the lines to be higher.

https://yadi.sk/i/iy7yGk7L3Z2K5p

Post count: 20688

Hi,

I could take a look, please provide a link to your website.

Post count: 73
Post count: 20688

I could give you a code to increase the padding of the table rows (default is 2px). This is how it looks with a 10px padding top and bottom
https://www.screencast.com/t/SlSZrH704H
This is the code you can adjust teh values if needed

.td-post-content table tr:nth-child(2) td {
padding: 10px 8px;
}

The code will not affect the first row of the table, the one with the title.

Post count: 73

I have increased the padding on only 1 row in the table.
I need this to apply to all rows of all tables in the site.

Post count: 20688

That code should work for all tables in the post content, starting from the second table row. I can modify it to affect the first row if you want the title to have the same padding.
Which other tables are you referring to exactly?

Post count: 73
Post count: 20688

Indeed, the code is not created properly. Sorry about that. Try it like this instead
https://www.screencast.com/t/pP2Br33O3m

.td-post-content table tr:not(:first-child) td {
padding: 10px 8px;
}

Give it a try and let me know.

Post count: 73

it work! Thanks!

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.