Custom Cell Alignment in Country-Specific Reports

Cells with the .csr-value class are automatically aligned to the right. Everything else is aligned to the left. To manually override the default alignment, assign the .csr-align-right (or left/center) class to the <td> element.

To override the vertical alignment of the cell, use the .csr-valign-bottom (or top/middle) class.

          <table class="csr-about">
    <!-- ... -->
</table>
 
<div class="csr-content">
    <table class="csr-data">
        <thead>
            <tr>
                <td width="70%" rowspan="2" class="csr-valign-bottom">${VAR.header_label.name}</td>
                <td width="30%" colspan="2" class="csr-align-center">${VAR.header_value.name}</td>
            </tr>
            <tr>
                <td width="15%" class="csr-align-right">${VAR.header_value_now.name}</td>
                <td width="15%" class="csr-align-right">${VAR.header_value_previous.name}</td>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td class="csr-label">${VAR.some_var_1.name}</td>
                <td class="csr-value">${VAR.some_var_1.value}</td>
                <td class="csr-value csr-secondary">${VAR.some_var_1.value2}</td>
            </tr>
            <tr>
                <td class="csr-label">${VAR.some_var_2.name}</td>
                <td class="csr-value">${VAR.some_var_2.value}</td>
                <td class="csr-value csr-secondary">${VAR.some_var_2.value2}</td>
            </tr>
        </tbody>
    </table>
</div> 

        
An example of how a table created using the Country-Specific Reports SuiteApp looks like when using custom alignment. In this case, the table cells are aligned to the right.

Related Topics

Creating a Template for the Country-Specific Reports SuiteApp
Sample Table in Country-Specific Reports
Indentation Levels in Country-Specific Reports
List of Accounts in Country-Specific Reports
Comparative Columns in Country-Specific Reports
Two-Column Layout in Country-Specific Reports
Custom Cell Alignment in Country-Specific Reports
About Sections in Country-Specific Reports

General Notices