Why Your Tables Look Junior: 6 Data Table Design Fixes
Six data table design fixes that make a table look senior: right-aligned numbers, quiet headers, a sort arrow, soft row lines instead of a grid, real row height and one line per cell. Each built side by side, with the CSS.

A junior table puts data in rows and stops there. Numbers sit left, headers look like rows, every cell has a box and long names wrap onto two lines. Nothing is broken, yet the eye has to read every row to find anything. Below are six fixes, each rebuilt side by side on small invented tables, with the exact values and the CSS.
Every example uses the same neutral skin as shadcn's Tasks table: 13 px Inter text, a hairline under each row, and status shown as an icon plus a word.
1. Right-align numbers
Junior

Senior

Left-aligned, $12,400.00 and $800.00 start at the same edge, so the short number looks as big as the long one. Right-aligned, the decimal points and the thousands line up, and the biggest amount sticks out to the left on its own.
Material Design says it directly: align numbers to the right, with the column header right-aligned to match. GOV.UK says the same for any table where people compare columns of numbers. Text columns stay left. Status, dates written as words and names are read, not compared, so they keep the left edge.
Turn on tabular figures too. In most UI fonts the digit 1 is narrower than the 8, so the columns drift by a pixel or two. font-variant-numeric: tabular-nums gives every digit the same width.
2. Set headers apart
Junior

Senior

When the header looks like a row, the first task competes with the word "Task". Set in gray Medium, the headers step back into labels and the data becomes the first thing you read.
Material's spec sets column headers in a medium weight to tell them apart from row text. The weight keeps the header crisp at small size, and the gray keeps it from shouting. Our values: 13 px, weight 500, #737373, on a row of 13 px regular text in #0A0A0A.
3. Show what's sorted
Junior

Senior

The rows run $312.40, $186.00, $94.50, but nothing says so. The order numbers and dates are out of order, so a reader can think the table is broken. One arrow next to Total answers it.
Material puts an arrow next to the sorted column's name, pointing down for high to low. Darken that one header as well, so the arrow is not the only cue. In code, add aria-sort="descending" to the header cell, so a screen reader announces the sort too.
4. Soft lines, not a grid
Junior

Senior

A full grid draws sixteen boxes for twelve values, and its mid gray lines compete with the text. Take away the outer box and the column lines, and the aligned columns still read as columns. What is left is a light line under each row that keeps your eye on the right row.
NN/g lists light borders and zebra striping among the things that help people keep their place in a table. Light is the key word. A line between columns adds nothing that alignment and a little space do not already do.
5. Give rows room
Junior

Senior

Same 13 px text, same three payouts. At 24 px the rows run into each other and your eye slips a line on the way across. At 40 px each row is its own band, and you can follow $2,030.00 back to 15 Oct without a finger on the screen.
Material's baseline row is 52 dp, with the header row 4 dp taller at 56. IBM Carbon offers five sizes: 24, 32, 40, 48 and 64 px.
The smallest is for dense tools where people already know the data. For most product tables, start at 40 and go up to 48 or 52 when rows are tapped on a phone.
6. One line per cell
Junior

Senior

Wrapped names make every row a different height, and the short columns float in the middle of tall rows. Cut each name to one line with an ellipsis and the rows line up again. "Website redesign for the sp…" is still enough to find the project.
Material truncates text longer than the column with an ellipsis and shows the full name in a tooltip on hover. Do both: cut the text in the cell and put the full name in a title attribute or a tooltip. Carbon keeps its tallest 64 px row for the rare table that truly needs two lines of content, which is a good test. If the second line matters, it deserves its own column.
The CSS for all six
table { border-collapse: collapse; width: 100%; font-size: 13px; color: #0A0A0A; }
th, td { height: 40px; padding: 0 12px; text-align: left; }
tr { border-bottom: 1px solid #E5E5E5; } /* 4: soft lines, no grid */
th { font-weight: 500; color: #737373; } /* 2: headers apart */
th[aria-sort] { font-weight: 600; color: #0A0A0A; } /* 3: the sorted column */
.num { text-align: right; font-variant-numeric: tabular-nums; } /* 1: on th and td */
.truncate { max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 6 */
In Figma, right-align the number columns in the header cell as well as the rows, and use fixed-height auto layout rows at 40 so a long name truncates instead of growing the row.
The six fixes in one table
| # | Junior | Senior | Value |
|---|---|---|---|
| 1 | Numbers aligned left | Numbers and their headers aligned right | text-align: right, tabular-nums |
| 2 | Headers set like rows | Quieter, heavier headers | 13 px, 500, #737373 |
| 3 | Sorted with no sign | An arrow next to the sorted column | ↓ Total, aria-sort |
| 4 | A box around every cell | A light line under each row | 1 px #E5E5E5 |
| 5 | 24 px rows | Rows with room | 40 px, 52 on touch |
| 6 | Names wrap to two lines | One line, cut with an ellipsis | text-overflow: ellipsis |
For the charts and KPI tiles around a table, read why your dashboard looks junior and the data visualization guide for designers. For the right gray on lines and labels, divider color and gray text color. The same junior and senior series covers typography, color, spacing and cards.
FAQ
Should numbers be right aligned in a table?
Yes. Right-align every column of numbers and its header, so the digits line up by place value and amounts compare at a glance. Keep text columns left-aligned.
What is a good row height for a data table?
40 px is a good default on desktop. Material's baseline is 52 dp, and IBM Carbon offers 24, 32, 40, 48 and 64 px. Go denser only for expert tools, and taller for touch.
Should a table have borders?
Use a light line under each row and no box around the cells. A full grid adds dark lines that compete with the data, while a soft row line helps the eye stay on its row.
How do you show which column a table is sorted by?
Put an up or down arrow next to that column's name and darken the header. Down means high to low. In code, set aria-sort on the header cell.
How do you handle long text in a table cell?
Keep it on one line and end it with an ellipsis, then show the full text in a tooltip on hover. Every row stays the same height.
How should table headers look?
Quieter than the rows but heavier: a gray color with a medium weight, such as 13 px at weight 500 in #737373 over 13 px regular rows.
Sources
- Data tables, Material Design (2019 edition): align numbers to the right, with the header right-aligned too; column headers use a medium weight; place an arrow next to the sorted column, down for descending; baseline row height 52 dp and header row 56 dp; text longer than the column is truncated with an ellipsis and shown in full in a tooltip on hover.
- Table, GOV.UK Design System: when comparing columns of numbers, align the numbers to the right in table cells.
- Data Tables: Four Major User Tasks, Page Laubheimer, Nielsen Norman Group: a frozen header row and first column, light borders and zebra striping support visual scanning and help users keep their place.
- Data table: style, IBM Carbon Design System: header and row heights of 24, 32, 40, 48 and 64 px, with the extra large size recommended only for two lines of content.
- Tasks example, shadcn/ui: the neutral table skin these demos follow, with status shown as an icon and a word.
- font-variant-numeric and text-overflow, MDN Web Docs: tabular figures and the ellipsis.
- aria-sort, MDN Web Docs: marks the sorted column header for assistive technology.
- The demos are our own builds. Every customer, task, order, plan, payout, project and person is invented example data. The amounts in the first table are seats times $100: 124 x $100 = $12,400; 8 x $100 = $800; 36 x $100 = $3,600.
- First published as a carousel on UX Brainy.





