Role21 Posted April 7, 2019 Report Share Posted April 7, 2019 I have this tabular report and I want to change the background color of a certain header. How will I do that? Quote Link to comment Share on other sites More sharing options...
1 JolliBeng Posted April 7, 2019 Report Share Posted April 7, 2019 Hi @Role21, You can try to add the following code on the header of your DataPage <style> [class*=cbResultSetHeaderCell]:nth-child(2) { background: white !important; } </style> Just change the number inside nth-child(2) to the number of your column and background : white to your preferred color/color code. -JolliBeng AtayBalunbalunan 1 Quote Link to comment Share on other sites More sharing options...
0 Harbinger Posted April 20, 2019 Report Share Posted April 20, 2019 Hello @Role21, I believe you can also do the mark up inside the label element in the DataPage. Ex: <style background: blue !important;>Header</style> Quote Link to comment Share on other sites More sharing options...
0 Harbinger Posted April 20, 2019 Report Share Posted April 20, 2019 You may also see KPCollier answer. Quote Link to comment Share on other sites More sharing options...
0 Roman743 Posted June 17, 2019 Report Share Posted June 17, 2019 You can try to add the following code on the header of your DataPage <style> [class*=cbResultSetHeaderCell]:nth-child(2) { background: white !important; } </style> Quote Link to comment Share on other sites More sharing options...
0 JerryW Posted October 13, 2021 Report Share Posted October 13, 2021 This solution works great for 1 label formatting, I'm sure this is an uber easy question, but what would the code look like to do the same for say columns 2,3,4, and 5? Would it require a class for each, or can all children be included in the one class? Quote Link to comment Share on other sites More sharing options...
0 Kurumi Posted October 13, 2021 Report Share Posted October 13, 2021 Hi @JerryW - you can have a comma in the property to add more class or child, like this one: <style> [class*=cbResultSetHeaderCell]:nth-child(2), [class*=cbResultSetHeaderCell]:nth-child(4) { background: yellow !important; } </style> Result: Resu Quote Link to comment Share on other sites More sharing options...
0 telly Posted September 30, 2023 Report Share Posted September 30, 2023 Hi @Role21, You can try this code if the DataPage is enabled responsive: Just change the th:nth-of-type(5) value based on the preferred field. <style> #target table:nth-of-type(1) th:nth-of-type(5) {display: none;} </style> </header> <div id="target"> <header> Quote Link to comment Share on other sites More sharing options...
Question
Role21
I have this tabular report and I want to change the background color of a certain header. How will I do that?
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
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.