• Resolved ajetal

    (@ajetal)


    I have had no success in adjusting column width using Custom CSS commands, both column width and padding, as provided in responses to other posts. As you can see on the site, the table is too wide to be seen all at once. Was hoping to shrink one or two columns in order to fit it all on.

    My Site

    Thanks for the help….

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    The reason for this is that your theme sets the padding in a rather aggressive way. To fix this, please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    #content .tablepress th,
    #content .tablepress td {
    	padding: 8px;
    }
    #content .dataTables_wrapper .sorting,
    #content .dataTables_wrapper .sorting_asc,
    #content .dataTables_wrapper .sorting_desc {
    	padding-right: 20px;
    }

    Regards,
    Tobias

    Thread Starter ajetal

    (@ajetal)

    This worked perfectly. Thanks for the prompt response.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot adjust column width’ is closed to new replies.