Change background color of searchpane header.

Change background color of searchpane header.

PareshKumarPareshKumar Posts: 31Questions: 14Answers: 1

Hi. Is there any way we can change the background color of searchpane column headers to white? Help will be appreciated. Thanks

This question has an accepted answers - jump to answer

Answers

  • sandysandy Posts: 913Questions: 0Answers: 236
    Answer ✓

    Hi @PareshKumar ,

    Yes of course, just set some custom css. Take a look at this example. I've made the background color red just to make it obvious.

    Thanks,
    Sandy

  • PareshKumarPareshKumar Posts: 31Questions: 14Answers: 1
    edited June 2020

    Hi @sandy, I have kept the controls as false in searchpane, so i want the searchpane column header set as background color white. And if possible, the header text as black. Can we do that? Thanks.

  • sandysandy Posts: 913Questions: 0Answers: 236

    @PareshKumar ,

    Yes, I've edited the above example, you have to take exactly the same steps. In your css just set your css as follows.

    .dtsp-search {
      //Custom css here
    }
    

    Thanks,
    Sandy

  • PareshKumarPareshKumar Posts: 31Questions: 14Answers: 1

    Hi @sandy, i tried the css which is in the example, but it doesn't seem to work.

  • sandysandy Posts: 913Questions: 0Answers: 236

    @PareshKumar ,

    Could you try and reproduce the issue you are having in a test case please? This can either be the page that you are working on or a live page similar to the above. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Thanks,
    Sandy

This discussion has been closed.