Archived topic
Remove caption area under tables
3 replies · Started by Lina on August 6, 2022
Can this be done?
I would like to position several tables one under the other, with little space in between.
Thank you!
Hi there,
you can add this CSS to remove the bottom margin from the Table Block:
.wp-block-table,
.wp-block-table table {
margin-bottom: 0;
}
If you want to do this only to specific tables, then:
1. Select the Table Block.
2. In Advanced > Additional CSS Class(es) add: no-bottom-margin
3. Publish those changes.
4. Add this CSS instead:
.wp-block-table.no-bottom-margin,
.wp-block-table.no-bottom-margin table {
margin-bottom: 0;
}
Hi David
I have a similar problem. I am using tables with stripes, so the I tried solutiom
1. Select the Table Block.
2. In Advanced > Additional CSS Class(es) add: no-bottom-margin
3. Publish those changes.
4. Add this CSS instead:
The stripes then disappears together with the caption.
Is there any easy way to do and still keep the stripes?
/Kasper
Hi Kasper,
Can you open a new support topic and link us to your site where we can see this table?
Thanks!