Phox Elements
LAYOUT Responsive tables for Breakdance

Tables that stack neatly on phones

Table lets you build a data table in the Breakdance editor with headers and rows. On screens under 768px wide each row becomes a card, with the column name shown beside every value. You style the header, rows and borders to match your site.

Stacks under 768px Dynamic data in every cell Striped rows and borders
Live demos

Four tables, four different looks

Each table below is a Table element with its own colours, borders and content: a class timetable, delivery prices, a cafe menu and a spec sheet. Make your browser narrower than 768px, or open this page on a phone, and each row turns into a card with the column names beside the values.

Class timetable

Northside Yoga Studio, weekly classes

Dark header, white and pale grey rows, horizontal borders only and centred text. Each cell uses a little HTML for the class name and time.

Day Morning Lunchtime Evening
Monday Sunrise flow
07:00
Desk stretch
12:30
Vinyasa
18:30
Tuesday Gentle yoga
09:30
No class Yin
19:00
Wednesday Sunrise flow
07:00
Desk stretch
12:30
Power yoga
18:30
Thursday Pregnancy yoga
10:00
No class Vinyasa
18:30
Friday Sunrise flow
07:00
Desk stretch
12:30
Candlelit yin
19:30
Saturday Family yoga
10:00
Beginners
12:00
No class
Shipping rates

Fieldfare Tea Co. delivery prices

Lilac header with dark purple text, striped rows and both horizontal and vertical borders.

Destination Standard Express Arrives in
UK mainland £3.95
Free over £40
£6.95 1 to 2 working days
Highlands and islands £6.50 £11.50 2 to 4 working days
Northern Ireland £5.50 £9.95 2 to 3 working days
Europe £9.50 £16.00 3 to 6 working days
Rest of the world £14.00 £24.00 5 to 10 working days
Menu with badges

The Harbour Cafe breakfast menu

Warm brown header, cream and white rows and horizontal borders. The Dietary column holds small HTML badges.

Dish Dietary Price
Full English breakfast None £11.50
Smashed avocado on sourdough Vegan £8.95
Buttermilk pancakes, berries and maple Vegetarian £7.50
Smoked salmon and scrambled eggs Gluten-free option £9.75
Porridge with oat milk VeganGluten-free £5.25
Spec sheet with caption

Compare three backpack sizes

Show Title is on, so the table has a caption above it. Green header, pale green odd rows and borders on every cell.

Trailhead backpack sizes
Feature Trailhead 30 Trailhead 45 Trailhead 60
Capacity 30 litres 45 litres 60 litres
Weight 0.9 kg 1.3 kg 1.6 kg
Back length 42 to 50 cm 45 to 55 cm 48 to 58 cm
Hip-belt pockets 1 2 2
Rain cover Sold separately Included Included
Best for Day hikes Weekend trips Multi-day treks
How it works

Three steps to a responsive table

No shortcodes and no spreadsheets to import.

1

Add the headers

Drop Table onto your page and add one header for each column.

2

Fill in the rows

Add rows, then add a cell for each column. Cells accept dynamic data and HTML.

3

Style it

Set the header colour, odd and even row colours, borders and fonts. The mobile layout is handled for you.

Features

What you get

A simple table that works on every screen size.

Mobile card layout

Under 768px the header row is hidden and each row becomes a stacked card.

Labels on mobile

Each value on mobile shows its column name next to it, taken from your headers.

Optional caption

Show a title above the table as a proper table caption.

Dynamic cells

The title, headers and cells all accept dynamic data from Breakdance.

HTML in cells

Cell content is output as HTML, so you can add links, bold text or icons.

Striped rows

Set separate colours for odd and even rows, and change them per breakpoint.

Border control

Turn horizontal and vertical borders on or off, and set their colour and width.

Header and body type

Separate typography and alignment for the header and the body.

Accessible markup

Uses a real table with thead, th scope and caption for screen readers.

Use cases

Where it works best

Any small data set that needs to read well on a phone.

01

Price lists

List services or products with their prices.

02

Specifications

Show product specs or technical details.

03

Timetables

Opening hours, class times or event schedules.

04

Team contacts

Names, roles, phone numbers and emails.

05

Comparisons

Compare a few options side by side.

06

Custom field data

Fill cells from custom fields in a template.

Settings reference

Every control, explained

This is the full list of settings in the Breakdance editor, with their default values.

ControlWhat it doesDefault
Content
Show TitleShow the table title as a caption.On
Table TitleThe caption text.My Table
HeadersA repeater with one header per column.3 headers
BodyA repeater of rows, each with a repeater of cells.1 row
Table Header
Background ColorHeader row background.#DEDEDE
TypographyHeader font, colour and alignment.—
Table Body
Odd Row ColorBackground of odd rows. Responsive.—
Even Row ColorBackground of even rows. Responsive.—
TypographyBody font, colour and alignment.—
Table Borders
Show Horizontal BorderLines between rows.Off
Horizontal ColorColour of row lines.—
Horizontal Border SizeWidth of row lines in px.—
Show Vertical BordersLines between columns.On
Vertical ColorColour of column lines.—
Vertical Border SizeWidth of column lines in px.1px
Container and spacing
BordersOuter border and radius of the table.1px
MarginSpace above and below the table.—
Tips & FAQ

Good to know

When does the mobile layout start?

Below 768px wide. Above that it is a normal table.

Where do the mobile labels come from?

From your headers. The first header labels the first cell in each row, the second labels the second, and so on.

Can I put links or formatting in a cell?

Yes. Cell content is output as HTML, so links, bold text and similar markup will work.

Can I fill it from custom fields?

Yes. The title, headers and cell values accept dynamic data, so you can use it inside templates.

Does it need JavaScript?

No. The table and the mobile layout are HTML and CSS only.

Why are my mobile labels hard to read?

On small screens the column labels use the header typography. If your header text is white, set a darker header text colour for the phone breakpoints, as the demos above do.

Add Responsive Table to your next page

Responsive Table is included with Phox Elements, along with 140+ other premium elements for Breakdance.