Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Ishaan_Kumar
Contributor III
Contributor III

CSS

I am using Qlik sense version Aug 2022

I want to change the background color of title in 1 pivot table 

The below code is changing the background color but it is changing the same in all the pivot tables

Even though I have written the object id , yet it is not working.

[tid="e79ce789-7fd1-49d0-a811-fd3101970b23"] .qv-object-table th {
background-color: #ff0000 !important;
color: #ffffff !important;
font-size: 15px !important;
}

Labels (3)
5 Replies
TauseefKhan
Creator III
Creator III

check with <div> :

div[tid="e79ce789-7fd1-49d0-a811-fd3101970b23"] .qv-object-pivot-table th {
background-color: #ff0000 !important;
color: #ffffff !important;
font-size: 15px !important;
}

Ishaan_Kumar
Contributor III
Contributor III
Author

Still the same result. It is changing the background color of tittles in all the pivot tables.

alex_colombo
Employee
Employee

Hey @Ishaan_Kumar , just tested your code and style has been applied to only one pivot table as below screenshots. 
Could you please try to run this command in browser developer tool console and tell me how many objects will returned? document.querySelector('div[tid=e79ce789-7fd1-49d0-a811-fd3101970b23]')

alex_colombo_0-1718202536231.png

 

 

Ishaan_Kumar
Contributor III
Contributor III
Author

Hey Alex,

Where should I test above code?

Kindly explain 

 

alex_colombo
Employee
Employee

Test it in the browser developer tool console. As per below screenshot, you should see a light blue square sorrounding one pivot table

alex_colombo_0-1718266121410.png