Hi,
thanks for your post, and sorry for the trouble.
The CSS that you are using is being applied and it’s working (I would however recommend to not use the overall .tablepress selector, but a more precise .tablepress-id-123 selector so that this only applies to the desired tables).
The reason why you might not be seeing the working CSS code in action could be caching. Can you therefore maybe try clearing the cache of the plugin that you are using for CSS minification and concatenation, or maybe visiting the site in an “incognito” browsing session?
Regards,
Tobias
hello @tobiasbg,
I tried to use the more precise selector as you said, but it did not work. Please check the issue.
Hi,
then I’m maybe not understanding what the problem is. Can you maybe try explaining it again, maybe with a screenshot?
Regards,
Tobias
Suppose i am creating a table with 3 column using 3 headers, namely 1. Sl No, 2. Name of the Test, and 3. IS Code. Obviously i need more width for the middle column than the other two, as it will have more content text, assume width of the first column is 25% of the total table width, and the same for the next tow column are 50% & 25% respectively. What should i do for that??
Hi,
but this is exactly how the table looks for me already (the second column has the largest width).
The best code to achieve it would be
.tablepress-id-1 .column-1,
.tablepress-id-1 .column-3 {
width: 25%;
}
.tablepress-id-1 .column-2 {
width: 50%;
}
Regards,
Tobias