For the complete documentation index, see llms.txt. This page is also available as Markdown.

Intentional Text Overflow on Related List

This is a rare situation where the client has a table and wants the text to overflow into the next cell. Most often, people will want text to not spill over and instead either expand the column to fit the text or have the text wrap. However, if they want the text to intentionally spill over into the next column, two things must be done.

In the table CSS, you will need to have both of these attributes in the column that you wish to have overflow:

  • table-layout: fixed;

  • width: 100%;

Setting the table layout to fixed and setting a width will keep a column from expanding to fit extra text and instead allow it to spill into the next column. Both of these attributes will need to be set in order for this to work.

Example CSS for a column you want to allow to overflow:

CSS
/* apply to the table (or specific column/cell as needed) */
table {
  table-layout: fixed;
  width: 100%;
}

/* or to a specific column/cell */
.some-column-class {
  table-layout: fixed;
  width: 100%;
}

Last updated

Was this helpful?