Skip to content

Advanced Settings ​

The Advanced tab of the column dialog fine-tunes how a column looks and behaves on your site. Text alignment and Click to copy are free. Column width, extra classes, colors, the Sortable and Searchable switches and HTML header content are Pro. Without Pro, the tab opens with the note Advanced column settings are mostly Pro and an upgrade link.

  1. Go to Ninja Tables › Tables › your table › Table Rows.
  2. Click the gear icon on a column header and choose Column settings.
  3. Open the Advanced tab.

The tab is split into four groups: Display, Colors, Behavior and Header.

Display ​

  • Header text align: aligns the column heading. Choose Default, Center, Left, Right or Justify. Start and End are in the list but have no effect on your site, on either the FooTable or the DataTables engine, so use Left or Right instead.
  • Content text align: aligns the cells under the heading. Choose Default, Center, Left or Right.
  • Column width (Pro): sets the width of the column in px or %. Leave it empty to size the column automatically.
  • Extra classes (Pro): adds one or more CSS classes to the heading and every cell in this column, for example price-col. Separate several classes with a space. Then style them in the table's Custom CSS/JS tab:
    1. Type a class name in Extra classes, for example test, and click Save column.
    2. Open the Custom CSS/JS tab, add your CSS for .test, and click Save.

See Style a table with CSS selectors for the selector to use. The same class is also what the rowspan method relies on.

Colors (Pro) ​

Set a Background color and a Text color for the whole column. They apply to the heading and the cells of that column.

To color single rows or cells instead, see Row and cell colors. To color by value, see Conditional formatting.

Behavior ​

  • Sortable (Pro): on by default. When on, visitors can click the heading to sort the table by this column. Turn it off to remove the sort icon and sorting for this column only. Sorting for the whole table is set in Table Design › Sorting. See Sorting.
  • Searchable (Pro): on by default. When on, this column is included when visitors use the search box. Turn it off to leave the column out of search results. On FooTable tables it is also left out of the Search in dropdown.
  • Click to copy: off by default. When on, visitors can click a cell in this column to copy its value. Useful for coupon codes, phone numbers or IDs.
  • HTML header content (Pro): turn this on to show HTML in the column heading instead of the plain name, such as an icon, a line break or a link. Add your content in the Header HTML content editor that appears. The HTML is filtered for safety, and shortcodes in it run.

Click Save column to keep your changes.