Site logo

[Resolved] Remove caption area under tables

Home Forums Support [Resolved] Remove caption area under tables

Home Forums Support Remove caption area under tables

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2305446
    Lina

    Can this be done?

    I would like to position several tables one under the other, with little space in between.

    Thank you!

    #2305686
    David
    Staff
    Customer Support

    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;
    }
    #2350393
    Kasper

    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

    #2350872
    Ying
    Staff
    Customer Support

    Hi Kasper,

    Can you open a new support topic and link us to your site where we can see this table?

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.