CSS Tablepress
What is tablepress? It is the most used table plugin, to create perfect tables in WordPress.
CSS tablepress code snippets
Adjust CSS tablepress column width through CSS Class
/* css class "tablepress-review" place in class field of the table you want to modify */
.tablepress-review .column-1 {
width: 300px;
CSS tablepress change columns width by ID
The width (px), ID and column number of this CSS code can be adjusted to your liking. This CSS code only adjusts the table of the table IDs that are in the Extra CSS. So you can place this code in the Extra CSS of your theme, or snippet manager. The N stands for the table ID that you can adjust.
/* Place this code as Extra CSS - Replace N (Number) with the ID number you wish to change. */
.tablepress-id-N .column-1 {
width: 200px;
}
Adjust CSS Tablepress Column width of multiple IDs
The width (px), IDs and column numbers of this CSS code can, of course, be adjusted to your liking. This CSS code only adjusts the table IDs you set in the Extra CSS. You place this code in the Extra CSS of your theme, or snippet manager.
/* Adjust the code an dplace the cod ein Extra CSS or a snippet manager - Replace N (Numbers) with the ID numbers you wish to adjust */
.tablepress-id-N .column-1 {
.tablepress-id-N .column-2,
.tablepress-id-N .column-4,
.tablepress-id-N .column-7 {
width: 150px;
}
CSS adjust the column width of 1 column for all tables at the same time
/* Place the CSS as Extra CSS - it adjusts the width of column 1 of all tables */
.tablepress .column-1 {
width: 200px;
}
adjust tablepress column width of multiple columns, in all tables, at the same time
The width (px) in this CSS code can be adjusted to your liking. You place this code in the Extra CSS of your theme, or a snippet manager.
/* adjust tablepress column width of multiple columns, in all tables, at the same time */
.tablepress .column-1 {
.tablepress .column-2,
.tablepress .column-4,
.tablepress .column-7 {
width: 200px;
}
Adjust CSS Tablepress Padding from a column of 1 table
/* adjust CSS Tablepress Padding from a column of 1 table */
.tablepress-id-N .column-2 {
padding: 4px;
}
CSS tablepress background different color at Hover
/* CSS tablepress background different color at Hover */
.tablepress .row-hover tr:hover td {
background-color: lightblue;
}
Hides the lines, change font px and padding all around
This code ensures that all lines are no longer visible, the font gets a fixed size and the padding can be adjusted as desired. You can adjust the Font-Size and Padding. You can place this code in extra CSS of your theme, or a Snippet Manager. Please note: this concerns all tablepress tabels on your website.
In the example below, you see that there are still lines present. With our CSS, you can easily remove those.

/* Hides the lines, change font px and padding all around */
.tablepress,
.tablepress tr,
.tablepress tbody td,
.tablepress tfoot th,
.tablepress thead th {
border: none !important;
font-size: 14px;
padding: 6;
}

Hides the lines, changes font px, padding around, font family
Extra information fonts: These almost always work well: Tahoma or Times of Helvetica.
/* Hides the lines, changes font px, padding around, font Family */
.tablepress,
.tablepress tr,
.tablepress tbody td,
.tablepress tfoot th,
.tablepress thead th {
border: none !important;
font-size: 14px;
padding: 6;
font-family: Tahoma;
}
Variation with N to adjust some tables only
/* Hides the lines, changes font px, padding around, font Family in some tables*/
.tablepress-id-N,
.tablepress-id-N tr,
.tablepress-id-N tbody td,
.tablepress-id-N tfoot th,
.tablepress-id-N thead th {
border: none !important;
font-size: 14px;
padding: 6;
font-family: Tahoma;
}
Integrate CSS for Tablepress on your website
Tablepress is one of the most used table plug-ins for WordPress.
The basic version is free and there is a Pro version, where you can adjust almost everything.
We have been using the plug-in ourselves since 2014, and still use it on almost every new website we make.

