WordPress.org

Ready to get started?Download WordPress

Forums

CSV to SortTable
[resolved] Modify width (4 posts)

  1. athemus
    Member
    Posted 1 year ago #

    After upgrading to 4.1.3, I've lost the ability to change the width of the table. It bleeds onto the right sidebar. How can I modify the width of the table to fit the content pane? (BTW, I love the plugin).

    Here is the page: http://www.westellesmere.com/?page_id=689

    http://wordpress.org/extend/plugins/csv-to-sorttable/

  2. Shaun Scovil
    Member
    Plugin Author

    Posted 1 year ago #

    Not sure why the upgrade would have caused the problem, but I did find a solution. Go to WP-Admin > Appearance > Editor and add this line to the very bottom of your theme's style.css file:

    table.sortable td {
        word-break: break-all;
    }

    That should do the trick.

  3. Shaun Scovil
    Member
    Plugin Author

    Posted 1 year ago #

    Also, you may want to add this:

    table.sortable th {
        word-break: break-all;
        word-wrap: break-word;
        white-space: nowrap;
    }
    table.sortable .col1 {
        min-width: 2.6em;
    }

    That will keep your column headers from breaking across multiple lines, and keep your first column wide enough to accommodate four-digit numbers.

  4. athemus
    Member
    Posted 1 year ago #

    Hi Shaun,

    Thank you! The solution in your first reply did the trick. I also added the solution in your second reply to be safe.

    I had been looking around and tried the header code many times before posting my q, but it didn't work. I totally forgot about the column code.

    Keep up the good work.
    Chris

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.