Column widths and text wrapping in Table Views
On the Vantage theme, a Table View fits the width of the page, and long text wraps inside its column. You can set how wide each column is, and keep values such as dates and IDs on one line with a few lines of CSS. A View’s theme is set on the Styles tab of its Settings box, as described in Themes: styling your Views with Legacy or Vantage.
Column sizing on the Vantage theme #
You set a column’s width with Percent Width, in the column’s settings under Display. A column left blank takes the width its content needs.
- Each column keeps its Percent Width when the content allows it.
- When the page is too narrow for the widths you set, the widths give way so that no text spills out of its cell and no column overlaps another.
- The table grows wider than the page only when its content cannot fit, for example a web address or code with no spaces or hyphens, or many columns. The table then scrolls sideways, and nothing is cut off.
- In a table that is wider than the page, each column shrinks as far as its content allows, so short values with a space or a hyphen break onto several lines. A date and time such as
2026-09-28 07:55:12shows as three lines, and a reference code such asREF-2026-000984-ZDas four. - On screens 640 pixels wide or narrower, each row shows as a card, with each column’s name above its value.


On the Legacy theme, the table matches the width of the page and its columns follow their Percent Width. DataTables Views have their own column settings, described in Controlling column widths and pinning columns in DataTables.
Keeping values on one line #
On a Vantage View, Custom CSS can keep values from wrapping. Both options below go in the View’s Custom CSS box, inside @media (min-width: 641px), which keeps the rule off phones, where the table shows as cards.
Option 1: Keep chosen columns on one line
Use this option when only some columns, such as dates, IDs, phone numbers or codes, should stay on one line, and long text in other columns should keep wrapping.
- In the View editor, click the gear icon on a column that should stay on one line. In the settings that open, scroll to Advanced and enter
keep-one-linein Custom CSS Class. Repeat this for each column you want on one line.

- Scroll down to the Settings box, click the Custom Code tab, and add this CSS to the Custom CSS box:
@media (min-width: 641px) {
.keep-one-line {
white-space: nowrap;
}
}
- Click Update.
GravityView adds the class to the column’s heading and to each of its cells, so the whole column stays on one line. The other columns keep wrapping, and if the table no longer fits the page, it scrolls sideways.

Any class name works, as long as it is the same in both places. On a Vantage View, GravityView limits the rules in Custom CSS to that View, so this rule does not change other Views on the same page.
Option 2: Keep every value on one line in one View
Use this option for data tables with many short values. A long value, such as a description, makes the table as wide as that value on one line.
@media (min-width: 641px) {
VIEW_SELECTOR table.gv-table-view {
width: max-content;
}
}GravityView replaces VIEW_SELECTOR with a selector for this View. Adding custom CSS to your Views explains the placeholders.
Every value now stays on one line, and the table grows as wide as its content needs and scrolls sideways:

Note: If the View’s Custom CSS has VIEW_SELECTOR table.gv-table-view { width: 100%; } from an earlier fix, remove it. That rule squeezes the columns into the page width even when their content does not fit, so text spills over into the next column.