> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.pdfgeneratorapi.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to set up alternate rows in the Container/Table component?

To set up Alternate rows for a Container component, you need to enable the Conditional formatting with the option "Change component style if matches the condition".

1. Right click on the Container component and navigate to the **Conditional formatting**
2. Select the **Expression** as a condition, where the expression looks like this: **{row_index} % 2 == 0**

![Conditional Formatting](https://storage.crisp.chat/users/helpdesk/website/11e0e518fc48ce00/image_y53v8.png)

This is how it looks in the final PDF:

![Alternate rows](https://storage.crisp.chat/users/helpdesk/website/11e0e518fc48ce00/image_1j3uwm5.png)
|| It is also possible to use the same approach for alternative rows in a Table, but keep in mind that you need to add the same condition to all columns separately, when using the Table component.
---
### Related articles you may find helpful

* [Common use-cases of the Expression language](/en/article/common-use-cases-of-the-expression-language-1seclga/)
* [Container Component](/en/article/container-component-5fi9zb/)
* [How to set up row numbering?](/en/article/how-to-set-up-row-numbering-jwjayk/)
