• Resolved rynman47

    (@rynman47)


    Hi Tobias

    I’m trying to adjust the width of my table by modifying the column widths but no luck. It always remains the same. Here’s what I’ve tried:

    .tablepress-id-1 .column-1 {
    	width: 50px;
    }
    
    .tablepress-id-1 .column-2 {
    	width: 50px;
    }
    
    .tablepress-id-1 .column-1 {
    	padding: 1px;
    }
    
    .tablepress-id-1 .column-2 {
    	padding: 1px;
    }
    
    .tablepress-id-1 {
    	width: auto;
    	margin: 0 auto 1em;
    }

    Sorry I can’t link you to the table as the content is not published yet.

    Ryan

    https://wordpress.org/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, I can’t find out why this is not working without actually seeing the page with the table (so that I can take a look at it with the browser’s developer tools).

    Therefore, it would be great if you could either publish the page with the table or maybe sent me a link via email (the address is in the main plugin file “tablepress.php”).

    Regards,
    Tobias

    Thread Starter rynman47

    (@rynman47)

    http://www.baseballogy.com/?p=50

    Password: bball

    Thanks mate!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for the link! Now I can see what’s going on. Basically, your theme is also using CSS code for tables so that we need to be a bit more specific with our “Custom CSS”.

    In this case, it should be sufficient to extend that last block of CSS to

    .tablepress-id-1 {
    	width: auto !important;
    	margin: 0 auto 1em;
    }

    Can you please try that?

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Centre Table’ is closed to new replies.