Site logo

[Support request] Improve Tables On Mobile Display

Home Forums Support [Support request] Improve Tables On Mobile Display

Home Forums Support Improve Tables On Mobile Display

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1826184
    Sunil

    Dear Team

    The tables on my website look deformed on mobile display and amp. Can you provide me with CSS to fix the same?

    table

    #1826325
    David
    Staff
    Customer Support

    Hi there,

    HTML Tables just aren’t natively responsive, and the core Table Block doesn’t provide options to make it so. The best option is to use a plugin like Table Press which adds that functionality.

    Other then that the most we can provide is some CSS like this:

    @media(max-width: 600px) {
        .wp-block-table {
            overflow-x: scroll;
        }
        .wp-block-table table {
            min-width: 600px;
        }
    }

    This will force the table to be sideways scrollable on smaller screens – adjust the 600px to suit.

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