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

Related List Tables and CSS

This article refers to the standard related lists generated from the “Insert Related List” button in the template editor.

When inserting a related list, you will find the CSS block included. It will look something like this:

<style type="text/css">
table.table876 {border:solid black 1px;border-collapse:collapse;border-spacing:0px;font-family:Arial,Helvetica,sans-serif;font-size:10pt;width:100%;}
.table876header {text-align:center;border:solid black 1px;color:#ffffff;background-color:#000000;}
.table876footer {text-align:right;font-weight:bold;border:solid black 1px;height:30px;}
.table876RowEven{border:solid black 1px;background-color:#2ecc71;}
.table876RowOdd{background-color:#cdcdcd;border:solid black 1px;}
.table876col0{border:solid black 1px;text-align:left;}
.table876col1{border:solid black 1px;text-align:left;}
.table876col2{border:solid black 1px;text-align:left;}
</style>

What does this translate to for the table itself being generated?

  • The “table.table876” attribute will contain the CSS that can style the entire table.

  • The “.table876col#” attribute will contain the CSS that can style the 1st column. Each column is designated by a number after “col” and it starts at 0.

  • Additionally, “.table876RowEven” and “.table876RowOdd” are used to style the odd/even rows of the table. This allows you to have things like alternating background colors for your table.

While this is standard-looking CSS, and it is, this is what S-Docs looks for when styling related list tables and the formatting is done to specifically format those tables. The table generator expects to see the above CSS to style the table, otherwise you will get basic defaults for all styling.

Last updated

Was this helpful?