Jump to content
  • 0

Label Alignment for Number Field (Tabular report)


ivan77

Question

6 answers to this question

Recommended Posts

  • 0

Hello @ivan77,

There are 2 CSS classes responsible for the header titles:

  • cbResultSetHeaderCell (for text fields)
  • cbResultSetHeaderCellNumberDate (for the numeric and Date fields)

 

Please go to the Styles > Result Page > Table Layout > Source > Search for the 'cbResultSetHeaderCell' and 'cbResultSetHeaderCellNumberDate'

Change the 'text-align' property and double-check if there is a semicolon at the end.


llQQPwk.png0nQlSca.png

Link to comment
Share on other sites

  • 0
59 minutes ago, CoopperBackpack said:

Hi @ivan77,

When I look at your screenshot, I understand this might be a Pivot table, not the Tabular Report.  Labels like 'Sum of...' are typical for the Pivot table. 

1) Please double-check the DataPage type.

2) Please confirm that you need to apply alignment only for labels and not for values.

Yes it is a pivot datapage, and alignment for both labels and values

Link to comment
Share on other sites

  • 0

Hi @ivan77,

Thank you for your clarification. 

Since labels on the Pivot table have the same classes, you may test the following approach: add styles to the Header section of the DataPage and reference the fields by their position number.

On your screenshot the highlighted fields are the 3rde and the 4th fields, so please test the code:

<style> 
th[class*="cbResultSetHeaderCell"]:nth-of-type(3),
th[class*="cbResultSetHeaderCell"]:nth-of-type(4) {
     text-align: right;
  }

td[class*="cbResultSetData"]:nth-of-type(3),
td[class*="cbResultSetData"]:nth-of-type(4) {
     text-align: right;
  }
</style>

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...