How to style the search text

How to style the search text

kevgraykevgray Posts: 3Questions: 1Answers: 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: 2,424Questions: 0Answers: 433
    edited May 17

    Hi Kev,

    You can use CSS like this example here:

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

    Cheers,

    Colin

  • kevgraykevgray Posts: 3Questions: 1Answers: 0

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

  • colincolin Posts: 2,424Questions: 0Answers: 433

    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: 3Questions: 1Answers: 0

    OK, got it.
    Thanks

Sign In or Register to comment.