How to style the search text

How to style the search text

kevgraykevgray Posts: 9Questions: 5Answers: 0

Hello, how can I style the literal "search" to show as a light text color on a dark background.

Thanks.
Kev Gray

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586
    edited May 2018

    Hi Kev,

    You can use CSS like this example here:

    .dataTables_filter input {
      color: white;
      background-color: black; 
    }
    

    Cheers,

    Colin

  • kevgraykevgray Posts: 9Questions: 5Answers: 0

    Thanks Colin, that works, but perhaps I was a little vague, it's the text labels I want to style -

  • colincolin Posts: 15,142Questions: 1Answers: 2,586

    Hi @kevgray ,

    Now they're red here. The thing to do is just use developer tools "inspect" the element you want to colour - normally you can get the id/class/element fairly easily.

    Cheers,

    Colin

  • kevgraykevgray Posts: 9Questions: 5Answers: 0

    OK, got it.
    Thanks

This discussion has been closed.