How can we change the current(active) page number color in the pagination

How can we change the current(active) page number color in the pagination

varunyadav971varunyadav971 Posts: 2Questions: 1Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem: We are facing an issue to overwrite a text color of the current(active) page number in the pagination. Suppose user on page 2 right now , so I want to highlight 2 with different color rather than default color(black).

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    You can do that with standard CSS, something like this example :

    .paginate_button.current  {
      background-color: red !important;
    }
    
  • varunyadav971varunyadav971 Posts: 2Questions: 1Answers: 0

    I don`t want to change the background color, I
    want to change the color of "1" only. Similar like that attaching screenshot for reference

  • allanallan Posts: 63,530Questions: 1Answers: 10,473 Site admin

    In that case, instead of using background-color use color: http://live.datatables.net/siqetehu/1/edit .

    The MDN documentation is a great guide if you need to reference what different CSS parameters are and what they do.

    Allan

Sign In or Register to comment.