Support » Plugin: TablePress » Column Not Working with Custom CSS

  • Resolved manningstinson

    (@swimfit)


    Hi Tobias,

    I am wanting to customize my column sizes using the CSS listed below. I have the CSS loaded in a Code Snippet (code snippets plugin), and only one custom style works. I originally tried it in the custom css within the table press plugin and got the same result. Only one column will resize and the other two styles are ignored.

    I do have my site caching through Cloudflare and Siteground but I have been emptying those to no avail. Can you help?

    .tablepress-id-1 .column-1 {
    	width: 250px !important;
    }
    
    .tablepress-id-2 .column-2 {
    	width: 250px !important;
    }
    
    .tablepress-id-3 .column-3 {
    	width: 650px !important;
    }

    Thanks in advance.

    – Manning

    The page I need help with: [log in to see the link]

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This CSS code would be influencing column widths for different tables (column 1 for table 1, column 2 for table 2, and column 3 for table 3). Is that really what you want? I’d assume that you want to set the column widths for this table (with the ID 1)?

    What would your desired column width structure be? Right now, it seems that your table only has one row of data, so that it might be a bit too early to start optimizing on this. Most often, the browser’s default selection of column widths works well (but can only really be useful if the table has more rows of data).

    Regards,
    Tobias

    Thread Starter manningstinson

    (@swimfit)

    Hi,

    Thanks for pointing out that I had the column widths set differently for three different tables. I do not want that. Yes, I just want the column widths for this table and have changed the ID to 1. I only loaded one line to test but will add more content today and see what the browser results are. If I still have issues, I will reply back to this post.

    Appreciate the quick response.

    Thanks,
    Manning

    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 ‘Column Not Working with Custom CSS’ is closed to new replies.