[Plugin: TablePress] Column Widths
-
Hi, Tobias:
Thanks for the great support for your plugins.
A couple of points/questions:
1> I am trying to set the column width in my Tables, and have been unable to do so after trying some of the directions in the forum.
So, far I have done this:
Added following to Custom CSS in Plugin Options:
.tablepress td column-1 {
width: 25px!important;
}Added following to Custom Commands for specific table
“aoColumnDefs”: [ { “bSortable”: false, “bAutoWidth”: false, “aTargets”: [ 4, 5, 6, 7 ] } ]the key above being the “bAutoWidth”
Basically, I am trying to limit the column width to less than the word content would occupy with the following:
.tablepress td {
font-family: Arial;
font-size: 11px;
color: #000000;
text-align:left;
white-space:nowrap;
overflow: hidden;
text-overflow: ellipsis;
border: 1px solid #344f75!important;
}All of the above, together, and separately, either way, it didn’t work. The column width does not change less than or more than the content width, no matter what I do.
2> I have two to three kinds of tables on my website, that use tablepress, each set being over a 100 tables each. I can use the code
.tablepress-id-N {…
to style the width, etc, for each table
But is there a way to do all of them in a batch, i.e.
.tablepress-id-1,3,5,7 {…
and then
.tablepress-id-2,4,6,8 (….insteading of, in my case, having a couple of hundred of these lines of code..
3> Similar to column width, as in #1 above, I am also unable to reduce vertical height, no matter what I try, using the suggestions on the forum. I do not have any padding, but I am trying to space the content closer in the table, than it does by default.
Thanks, as always, for your prompt replies.
Regards,
Manish
- The topic ‘[Plugin: TablePress] Column Widths’ is closed to new replies.