• Resolved KJ82

    (@kj82)


    Hi,

    I would like the tables to be 100% so they look better with the theme. I wasn’t able to find a setting to do it (for all tables), so I modified the code in the CSS editor.

    /*
    You can add your own CSS here.
    
    Click the help icon above to learn more.
    */
    
    table {
    	width: 100% !important;
    }

    The code doesn’t work unless I add the !important modifier… It seems to work, but I want to make sure this is the correct way to do it. I don’t want to run into any problems later.

    Website: https://kennethrjones.com/spanish-lessons-1-through-3/

    Thanks.

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    It seems that you are affected by a small bug in the DataTables JS library.
    Therefore, for the tables on that page, please uncheck the “Use DataTables” checkbox on the table’s “Edit” screen.
    After this, the extra CSS that you added should no longer be necessary, as that’s the default in TablePress.

    Regards,
    Tobias

    Thread Starter KJ82

    (@kj82)

    Thanks, that fixed it. If that checkbox is checked, the tables don’t display correctly. I tested it a few times.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, that sometimes happens on some themes, especially if the features are turned off. I’m not sure why though ??

    But good to hear that it’s working again now ??

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Table Width’ is closed to new replies.