Add a table to your website
To add a table in Xodia, choose Table in Add elements, type into its cells, and use the Table bar to add rows and columns. On phones each row turns into a card with its headings, so the table reads on any screen.
By Zuzo Studio, the team behind Xodia
Published
Free plan. No card needed.
A bakery's Classes table in Xodia with All sizes on: a row is selected with the Table bar over the canvas to add or remove rows and columns, the tablet page keeps the columns, and on the phone page each row shows as a card with its headings.
Step by step
How to add a table to a website
Seven steps to a table that reads well on every screen.
- 1
Select where it goes
Click the section or element the table should go after, or inside. Open Add elements in the rail beside the canvas.
- 2
Add a Table
Under Basics, choose Table, or drag it onto the page. It comes in with a header row and two rows of sample words.
- 3
Type into the cells
Double-click a cell and type, the same as any text. A cell can hold any element, such as a link or a button.
- 4
Add rows and columns
Select the table, a row or a cell, and the Table bar opens over the canvas. Add a row above or below, a column left or right, remove one, or turn the header row on or off.
- 5
Style it
Open the Style panel with the paintbrush in the canvas's corner. The Table group sets the lines, their colour, stripes, a header fill and the space in each cell.
- 6
Choose how it shows on phones
Small screens set to Cards stacks each row as a card with its column's headings; Scroll keeps the columns and scrolls sideways. Turn on All sizes to see the phone page as you change it.
- 7
Fill it from a collection, if it grows
For a list you update often, such as prices or events, choose Collection table under CMS instead. Its rows come from your collection, so a new item shows up by itself.
Add elements
A real table in your code
Table sits in Add elements under Basics. It is written as a real table in your page's code, with its header row marked for screen readers and search engines.
- Every add and remove is one undo step
- Cells hold any element, not just words
The Add elements panel open on Basics: section, container, stack, row, grid, two columns, bento grid, card, table and divider, ready to add after the selected element.
Table group
Lines, stripes and space, in plain choices
The Style panel's Table group shows when a table is selected. Select one row or cell to colour it alone.
- Lines: None, Rows or All, in a colour you pick
- Stripes, Row hover, and the header's fill and text
- Cell space: Tight, Normal or Roomy
- Cards on Small phones, Phone or Tablet
The Style panel on a table: the Table group with lines between rows, their colour, a header fill, normal cell space, and Cards on small screens from the Phone size, beside the bakery's Classes table with the Table bar.
Collection table
Every planA table that fills itself from your content
A Collection table takes its rows from a Xodia CMS collection. Add or change items in Content, and the table follows; the Table bar says so when a row is selected.
- One row per item, a column per field
- Collections are part of Xodia CMS
A Collection table on the bakery's journal page in Xodia: the table is selected, its rows are the Journal collection's posts, and the Table bar says rows come from the collection, so items are added or removed in Content.
Questions
Questions about tables
Will my table work on phones?
Yes. A new table starts with Cards below the Tablet size: each row stacks as a card with its column's headings. Choose Scroll instead to keep the columns and let the table scroll sideways.
Can I paste a table from a spreadsheet?
Not as one paste. Add a Table and type or paste into each cell, or, for a long list you update often, put the rows in a collection with CSV import and use a Collection table.
Is it on the Free plan?
Yes. Tables, the Table bar and the Table group are on every plan. A Collection table uses Xodia CMS, which follows its own plan limits.
Can I add a table to a site I imported?
Yes, on Vite sites with React or plain JavaScript and plain HTML sites, styled with Tailwind CSS. See Import and convert.
Keep exploring
Related guides and pages
- Edit your website for phone and tabletEvery screen size side by side, phone-only changes
- Build a blog with Xodia CMSPosts in your repo, a list on any page and a page per post
- Edit a website without codeClick to type, swap photos and links, undo any edit
- Xodia CMSCollections in your repo, with Collection tables
- Responsive tableA table that fits phones
- Tables in the docsThe Table bar and the Table group