> For the complete documentation index, see [llms.txt](https://help.sdocs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.sdocs.com/sdocs/template-architecture/template-authoring/related-list-tables-and-css.md).

# Related List Tables and CSS

{% hint style="info" %}
This article refers to the standard related lists generated from the “Insert Related List” button in the template editor.
{% endhint %}

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

{% code overflow="wrap" %}

```
<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>
```

{% endcode %}

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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.sdocs.com/sdocs/template-architecture/template-authoring/related-list-tables-and-css.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
