# How we can change losant table header bg color and text color?

**URL:** <https://forums.losant.com/t/how-we-can-change-losant-table-header-bg-color-and-text-color/4966>\
**Category:** Help\
**Tags:** data-table, data-table-block\
**Created:** [March 9, 2023, 4:35pm UTC](https://forums.losant.com/t/how-we-can-change-losant-table-header-bg-color-and-text-color/4966 "2023-03-09T16:35:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dinesh\_Kumar](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@Dinesh\_Kumar](https://forums.losant.com/u/Dinesh_Kumar)\
**Post date:** [March 9, 2023, 4:35pm UTC](https://forums.losant.com/t/how-we-can-change-losant-table-header-bg-color-and-text-color/4966/1 "2023-03-09T16:35:15Z")

</div>

I am writing the below code in custom section of pages , but it is not reflecting in site  
.ReactVirtualized\_\_Table\_\_headerRow {  
background-color:orange;  
color:white;

}

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [March 9, 2023, 5:45pm UTC](https://forums.losant.com/t/how-we-can-change-losant-table-header-bg-color-and-text-color/4966/2 "2023-03-09T17:45:24Z")

</div>

Testing this, I was able to get it to apply the style if I added an [`!important`](https://www.w3schools.com/css/css_important.asp) to the end of the declaration. This is necessary because the element you are trying to apply the custom style to has its background-color as an inline style, which has a higher [specificity](https://www.w3schools.com/css/css_specificity.asp) over styles applied by any other method - unless you use the `!important` rule.

---

<div class="post-metadata">

**Author:** ![Dinesh\_Kumar](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@Dinesh\_Kumar](https://forums.losant.com/u/Dinesh_Kumar)\
**Post date:** [March 10, 2023, 2:40am UTC](https://forums.losant.com/t/how-we-can-change-losant-table-header-bg-color-and-text-color/4966/3 "2023-03-10T02:40:12Z")

</div>

Thank you for the solution.  
👍
