HTML tables without borders in WordPress

The WordPress block editor has made it much easier to do something that until recently required installing additional plugins or knowing HTML: Creating tables.

Just add a table block, decide what rows and columns it will have, and apply one of the styles it offers.

Settings for tables

But what it doesn’t offer is the possibility to remove the borders, in the available styles there are always visible lines or stripes that separate cells, rows and columns.

It’s a very useful resource, and I’ve seen users that have installed a plugin just for this, when in fact it’s not necessary.

If you want your tables to be borderless, just add the following code to the “Additional CSS” section of the WordPress customizer:

%MINIFYHTML54c3a4a498e3ccaa9ee4da4986fb7f0153%
table, tr, td { border: none; }
Click to rate this post!
[Total: 1 Average: 5]

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top Skip to content