A table that looks tidy on a laptop can be close to unusable on a phone. Here is why that happens, which fixes actually work, and how to pick one for each kind of table you publish.
Most visitors now read on a screen that is 360 to 430 pixels wide. A table with six columns needs far more room than that, so something has to give. The browser squeezes the columns until the words break in the middle, or the table spills past the edge of the page, or the whole layout zooms out until the text is too small to read.
This guide covers the four common ways to fix it, what the WordPress table block does on its own, how to keep tables accessible while you change how they look, and a checklist you can run through in ten minutes.
Why do wide tables break on narrow screens?
A table is a grid, and a grid has a minimum width. Each column needs enough room for its longest unbreakable word, plus padding. Add a price column, a model number and a short description, and the minimum width easily passes 600 pixels. A phone gives you about 340 pixels after the page margins.
Three things can happen then. The table can overflow the page and force the whole page to scroll sideways. The table can be clipped and the last columns simply vanish. Or the text can wrap so aggressively that every cell becomes a tall, thin strip of two letters per line. None of them is what you intended.
The fix is not to make the table smaller. It is to change what the reader sees when there is no room for a grid.
What are the four ways to make a table mobile friendly?
1. Horizontal scroll
The table keeps its shape and sits inside a container that scrolls sideways. This is the simplest fix, and it is often a single line of CSS.
- Good: no content is hidden, the table is still a real table, and comparing columns side by side still works.
- Not so good: readers have to discover that the table scrolls, the first column (the thing each row is about) disappears as soon as they scroll, and a long table means scrolling in two directions.
Scrolling suits wide data that people compare across columns, such as a spreadsheet-style export. It helps a lot to keep the first column pinned and to show a visible hint, like a fade on the right edge.
2. Stacking rows as cards
Each row becomes its own block. Inside it, every cell shows its column name as a label, followed by the value. A product row turns into a small card: name at the top, then “Price: 49”, “Weight: 1.2 kg”, “Warranty: 2 years”.
- Good: nothing scrolls, everything is readable at normal text size, and each item stands on its own.
- Not so good: comparing two rows means scrolling up and down, and the labels repeat in every card, so a long table gets long. Done badly with CSS alone, the labels are not exposed to screen readers.
Cards are the best fit when each row describes one thing (a plan, a product, an event) and readers mostly look at one row at a time.
3. Hiding columns
You decide which columns matter on a phone and hide the rest. Some tools let readers toggle hidden columns with a small expand button.
- Good: the table stays compact and still looks like a table.
- Not so good: you are choosing what mobile readers do not need, and that choice is often wrong. Readers who expected the full data may not realize anything is missing.
Hiding works when a few columns are clearly secondary, for example an internal ID or a notes column. Avoid it for anything a reader may need to decide on, like price or compatibility.
4. Collapsing to key-value pairs
Instead of one card per row, the table is flipped so each column becomes a list of “label: value” lines. For a table with two or three columns and many rows, this is close to a definition list.
- Good: very compact and very readable for narrow data such as “Setting, Default value” lists.
- Not so good: it only works for narrow tables.
In practice the last two approaches overlap. A card is a key-value block for one row. The difference is mostly how much visual structure you add around it.
What does the WordPress table block do on mobile?
The core Table block gives you a real HTML table with a header row option, a footer, caption and a fixed-width cell option. On a phone, what happens next depends largely on your theme. Many themes make the block scroll sideways when it is too wide. Others let it overflow or shrink the text. The block does not turn rows into cards, hide columns or add a scroll hint by itself.
You also cannot assign a label to each cell in the core block. That is fine for scrolling, because the header row stays attached to its columns. It is the reason cards and key-value layouts need extra code or a plugin: something has to read the header text and copy it next to each value.
The practical advice is to test your own theme first. Open a page with a six-column table on a phone, or in your browser’s responsive mode at 375 pixels, and see what actually happens. Some themes do a decent job, and then you may not need anything else.
Tip: test at 375 pixels wide and at 320. Many older phones and split-screen modes are narrower than the common 390 pixel width, and that is where layouts break first.
How do you keep a mobile table accessible?
Whatever layout you choose, the table should still be a table to a screen reader. Three habits cover most of it.
- Use real table markup. A header row marked with th elements, not a row of bold cells. Screen readers use header cells to announce “Price, 49” instead of just “49”.
- Keep header and data connected. If a layout hides the header row and shows labels inside each card, the labels must still reach assistive technology, either as real text or through the same markup the table had. A label that exists only as a CSS pseudo-element is invisible to some screen readers.
- Do not rely on position or color. A card that says “Best value” only through a green border tells some readers nothing. Put the words in the text.
Also check keyboard use. If the table scrolls, a keyboard user should be able to focus the scroll area and move through it with the arrow keys. And keep the text at a normal size, at least 16 pixels. Shrinking a table to fit is the least accessible option of all.
Which layout fits which kind of table?
Different tables have different jobs. Here is a starting point.
| Table type | Best on phones | Why |
|---|---|---|
| Pricing plans | Cards | Each plan is one thing; readers pick one |
| Product specs (6 columns) | Cards, or scroll with a pinned first column | Cards for browsing; scroll if readers compare models |
| Schedules and timetables | Cards or key-value | Each row is an event: time, place, title |
| Release or version history | Cards | Seven rows with a date, version and notes read like a list |
| Large data lists and exports | Scroll, plus search | Comparing across columns matters more than comfort |
A worked example: the 6-column spec table
Imagine a table of laptop stands with columns for Model, Material, Height range, Weight, Price and Warranty. On a phone, a horizontal scroll shows Model and Material, and the reader has to swipe to learn the price. Cards show each stand as a block with all six facts in order. If your readers usually ask “which stand is cheapest?”, add sorting by price. A card layout with sorting beats either of the others for this table.
A worked example: a release history
A plugin changelog with seven rows (version, date, type, notes) is closer to a list than a grid. Cards work, but so does a plain list. Do not build a complicated table when a heading and a short paragraph for each release would be easier to read.
Where does Nitida Tables fit in?
Nitida Tables is one option for the cards approach. It turns each row into a card with the column names as labels, based on the width of the space the table sits in, not only the screen. A table in a narrow sidebar becomes cards on a desktop as well. It also adds search and sorting that understand numbers and dates, which helps once rows stack. The Pro add-on can show the core WordPress table blocks already in your posts as cards, so you do not need to rebuild them. You can use any of the other approaches above without it, and the checklist below applies either way.
A ten-minute checklist
- Open the page on a real phone, not just a narrow browser window.
- Can you read every value without zooming or hunting for a scrollbar?
- Does the first column or row label stay visible when needed?
- Is the header row real table markup (th), and do labels reach screen readers?
- Is the text at least 16 pixels and are tap targets for links and buttons large enough?
- Could a hidden column hold something a reader needs to decide?
- Is a table the right choice, or would a list do the job?
- Did you test the narrowest layout, around 320 to 375 pixels?
Questions you may have
Can I fix this with CSS alone?
For horizontal scroll, yes. For cards, you can do it with CSS that reads data attributes, but those attributes have to come from somewhere, which usually means a plugin or a custom template.
Will changing the mobile layout hurt my SEO?
Not if the content stays the same. Hiding text from some users is the main risk, so prefer layouts that keep every value in the page.
What about very large tables?
Add search and paging, and consider whether readers need all of it on one page.
Which tables on your site are hardest to read on a phone? Tell us what they contain (prices, specs, schedules) and we will suggest a layout in the comments.
Want to try cards, search and sorting? Take a look at Nitida Tables and the documentation.
Leave a Reply