jQuery / DataTables: how to change pagination colorIs there an “exists” function for jQuery?How to horizontally center a <div>?How do I check if an element is hidden in jQuery?Setting “checked” for a checkbox with jQuery?How do I redirect to another webpage?How to disable text selection highlighting?How to check whether a checkbox is checked in jQuery?Change an HTML5 input's placeholder color with CSSWhy does HTML think “chucknorris” is a color?“Thinking in AngularJS” if I have a jQuery background?

How to eliminate gap at the start and at the end of a line when it's drawn along a side of a node's bounding box?

Keeping the dodos out of the field

How does the Earth's center produce heat?

Why did Nick Fury not hesitate in blowing up the plane he thought was carrying a nuke?

How would a physicist explain this starship engine?

Is it safe to redirect stdout and stderr to the same file without file descriptor copies?

Is the default 512 byte physical sector size appropriate for SSD disks under Linux?

Make the `diff` command look only for differences from a specified range of lines

mmap: effect of other processes writing to a file previously mapped read-only

Surface of the 3x3x3 cube as a graph

Why is this python script running in background consuming 100 % CPU?

What is the winged creature on the back of the Mordenkainen's Tome of Foes book?

JavaScript: Access 'this' when calling function stored in variable

Are there historical examples of audiences drawn to a work that was "so bad it's good"?

Why is unzipped file smaller than zipped file

Department head said that group project may be rejected. How to mitigate?

Would this be a dangerous impeller to use for a drone?

why "American-born", not "America-born"?

To exponential digit growth and beyond!

Are clauses with "который" restrictive or non-restrictive by default?

Wifi light switch needs neutral wire. Why? AND Can that wire be a skinny one?

Is being an extrovert a necessary condition to be a manager?

Why is the reciprocal used in fraction division?

Computing elements of a 1000 x 60 matrix exhausts RAM



jQuery / DataTables: how to change pagination color


Is there an “exists” function for jQuery?How to horizontally center a <div>?How do I check if an element is hidden in jQuery?Setting “checked” for a checkbox with jQuery?How do I redirect to another webpage?How to disable text selection highlighting?How to check whether a checkbox is checked in jQuery?Change an HTML5 input's placeholder color with CSSWhy does HTML think “chucknorris” is a color?“Thinking in AngularJS” if I have a jQuery background?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








4















I am using the jQuery DataTables plugin (version 1.9.4) and would like to change the color of the pagination.



With CSS I am able to change their background color but I couldnt find a way to change the font color and font hover color for the anchor tags. I would like to change both font color and hover font color for all the below anchor tags to white (#FFFFFF).



The pagination code looks as follows:



<div id="myTable_paginate" class="dataTables_paginate paging_full_numbers">
<a id="myTable_first" class="first paginate_button paginate_button_disabled" tabindex="0">First</a>
<a id="myTable_previous" class="previous paginate_button paginate_button_disabled" tabindex="0">Previous</a>
<span>
<a class="paginate_active" tabindex="0">1</a>
<a class="paginate_button" tabindex="0">2</a>
</span>
<a id="myTable_next" class="next paginate_button" tabindex="0">Next</a>
<a id="myTable_last" class="last paginate_button" tabindex="0">Last</a>
</div>


Thanks for any help with this, Tim.










share|improve this question

















  • 1





    inspect each element in browser console , can see all rules that apply and live edit them. Find what works and copy to file

    – charlietfl
    Nov 24 '13 at 23:35












  • Thanks - how do i do that ?

    – user2571510
    Nov 25 '13 at 0:46

















4















I am using the jQuery DataTables plugin (version 1.9.4) and would like to change the color of the pagination.



With CSS I am able to change their background color but I couldnt find a way to change the font color and font hover color for the anchor tags. I would like to change both font color and hover font color for all the below anchor tags to white (#FFFFFF).



The pagination code looks as follows:



<div id="myTable_paginate" class="dataTables_paginate paging_full_numbers">
<a id="myTable_first" class="first paginate_button paginate_button_disabled" tabindex="0">First</a>
<a id="myTable_previous" class="previous paginate_button paginate_button_disabled" tabindex="0">Previous</a>
<span>
<a class="paginate_active" tabindex="0">1</a>
<a class="paginate_button" tabindex="0">2</a>
</span>
<a id="myTable_next" class="next paginate_button" tabindex="0">Next</a>
<a id="myTable_last" class="last paginate_button" tabindex="0">Last</a>
</div>


Thanks for any help with this, Tim.










share|improve this question

















  • 1





    inspect each element in browser console , can see all rules that apply and live edit them. Find what works and copy to file

    – charlietfl
    Nov 24 '13 at 23:35












  • Thanks - how do i do that ?

    – user2571510
    Nov 25 '13 at 0:46













4












4








4


1






I am using the jQuery DataTables plugin (version 1.9.4) and would like to change the color of the pagination.



With CSS I am able to change their background color but I couldnt find a way to change the font color and font hover color for the anchor tags. I would like to change both font color and hover font color for all the below anchor tags to white (#FFFFFF).



The pagination code looks as follows:



<div id="myTable_paginate" class="dataTables_paginate paging_full_numbers">
<a id="myTable_first" class="first paginate_button paginate_button_disabled" tabindex="0">First</a>
<a id="myTable_previous" class="previous paginate_button paginate_button_disabled" tabindex="0">Previous</a>
<span>
<a class="paginate_active" tabindex="0">1</a>
<a class="paginate_button" tabindex="0">2</a>
</span>
<a id="myTable_next" class="next paginate_button" tabindex="0">Next</a>
<a id="myTable_last" class="last paginate_button" tabindex="0">Last</a>
</div>


Thanks for any help with this, Tim.










share|improve this question














I am using the jQuery DataTables plugin (version 1.9.4) and would like to change the color of the pagination.



With CSS I am able to change their background color but I couldnt find a way to change the font color and font hover color for the anchor tags. I would like to change both font color and hover font color for all the below anchor tags to white (#FFFFFF).



The pagination code looks as follows:



<div id="myTable_paginate" class="dataTables_paginate paging_full_numbers">
<a id="myTable_first" class="first paginate_button paginate_button_disabled" tabindex="0">First</a>
<a id="myTable_previous" class="previous paginate_button paginate_button_disabled" tabindex="0">Previous</a>
<span>
<a class="paginate_active" tabindex="0">1</a>
<a class="paginate_button" tabindex="0">2</a>
</span>
<a id="myTable_next" class="next paginate_button" tabindex="0">Next</a>
<a id="myTable_last" class="last paginate_button" tabindex="0">Last</a>
</div>


Thanks for any help with this, Tim.







jquery css pagination datatables jquery-datatables






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 24 '13 at 23:31









user2571510user2571510

3,9913071118




3,9913071118







  • 1





    inspect each element in browser console , can see all rules that apply and live edit them. Find what works and copy to file

    – charlietfl
    Nov 24 '13 at 23:35












  • Thanks - how do i do that ?

    – user2571510
    Nov 25 '13 at 0:46












  • 1





    inspect each element in browser console , can see all rules that apply and live edit them. Find what works and copy to file

    – charlietfl
    Nov 24 '13 at 23:35












  • Thanks - how do i do that ?

    – user2571510
    Nov 25 '13 at 0:46







1




1





inspect each element in browser console , can see all rules that apply and live edit them. Find what works and copy to file

– charlietfl
Nov 24 '13 at 23:35






inspect each element in browser console , can see all rules that apply and live edit them. Find what works and copy to file

– charlietfl
Nov 24 '13 at 23:35














Thanks - how do i do that ?

– user2571510
Nov 25 '13 at 0:46





Thanks - how do i do that ?

– user2571510
Nov 25 '13 at 0:46












3 Answers
3






active

oldest

votes


















5














Maybe you miss the !important declaration? In this case it is indeed important.



.paging_full_numbers a.paginate_button 
color: #fff !important;

.paging_full_numbers a.paginate_active
color: #fff !important;



jsfiddle -> http://jsfiddle.net/CrBkT/






share|improve this answer


















  • 1





    Awesome - I would never have thought of that and it works. Thanks a lot ! :)

    – user2571510
    Nov 25 '13 at 15:06


















0














Another answer is here:



$.fn.dataTable.ext.classes.sPageButton = 'your class';





share|improve this answer






























    0














    after a bit of messing about this is what i got to work;



     .page-item.active .page-link 
    color: #fff !important;
    background-color: #000 !important;
    border-color: #000 !important;


    .page-link
    color: #000 !important;
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;


    .page-link:hover
    color: #fff !important;
    background-color: #000 !important;
    border-color: #000 !important;






    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function ()
      StackExchange.using("externalEditor", function ()
      StackExchange.using("snippets", function ()
      StackExchange.snippets.init();
      );
      );
      , "code-snippets");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "1"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f20182500%2fjquery-datatables-how-to-change-pagination-color%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      5














      Maybe you miss the !important declaration? In this case it is indeed important.



      .paging_full_numbers a.paginate_button 
      color: #fff !important;

      .paging_full_numbers a.paginate_active
      color: #fff !important;



      jsfiddle -> http://jsfiddle.net/CrBkT/






      share|improve this answer


















      • 1





        Awesome - I would never have thought of that and it works. Thanks a lot ! :)

        – user2571510
        Nov 25 '13 at 15:06















      5














      Maybe you miss the !important declaration? In this case it is indeed important.



      .paging_full_numbers a.paginate_button 
      color: #fff !important;

      .paging_full_numbers a.paginate_active
      color: #fff !important;



      jsfiddle -> http://jsfiddle.net/CrBkT/






      share|improve this answer


















      • 1





        Awesome - I would never have thought of that and it works. Thanks a lot ! :)

        – user2571510
        Nov 25 '13 at 15:06













      5












      5








      5







      Maybe you miss the !important declaration? In this case it is indeed important.



      .paging_full_numbers a.paginate_button 
      color: #fff !important;

      .paging_full_numbers a.paginate_active
      color: #fff !important;



      jsfiddle -> http://jsfiddle.net/CrBkT/






      share|improve this answer













      Maybe you miss the !important declaration? In this case it is indeed important.



      .paging_full_numbers a.paginate_button 
      color: #fff !important;

      .paging_full_numbers a.paginate_active
      color: #fff !important;



      jsfiddle -> http://jsfiddle.net/CrBkT/







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Nov 25 '13 at 10:29









      davidkonraddavidkonrad

      66k13146202




      66k13146202







      • 1





        Awesome - I would never have thought of that and it works. Thanks a lot ! :)

        – user2571510
        Nov 25 '13 at 15:06












      • 1





        Awesome - I would never have thought of that and it works. Thanks a lot ! :)

        – user2571510
        Nov 25 '13 at 15:06







      1




      1





      Awesome - I would never have thought of that and it works. Thanks a lot ! :)

      – user2571510
      Nov 25 '13 at 15:06





      Awesome - I would never have thought of that and it works. Thanks a lot ! :)

      – user2571510
      Nov 25 '13 at 15:06













      0














      Another answer is here:



      $.fn.dataTable.ext.classes.sPageButton = 'your class';





      share|improve this answer



























        0














        Another answer is here:



        $.fn.dataTable.ext.classes.sPageButton = 'your class';





        share|improve this answer

























          0












          0








          0







          Another answer is here:



          $.fn.dataTable.ext.classes.sPageButton = 'your class';





          share|improve this answer













          Another answer is here:



          $.fn.dataTable.ext.classes.sPageButton = 'your class';






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 21 '18 at 17:57









          MohsenMohsen

          128212




          128212





















              0














              after a bit of messing about this is what i got to work;



               .page-item.active .page-link 
              color: #fff !important;
              background-color: #000 !important;
              border-color: #000 !important;


              .page-link
              color: #000 !important;
              background-color: #fff !important;
              border: 1px solid #dee2e6 !important;


              .page-link:hover
              color: #fff !important;
              background-color: #000 !important;
              border-color: #000 !important;






              share|improve this answer



























                0














                after a bit of messing about this is what i got to work;



                 .page-item.active .page-link 
                color: #fff !important;
                background-color: #000 !important;
                border-color: #000 !important;


                .page-link
                color: #000 !important;
                background-color: #fff !important;
                border: 1px solid #dee2e6 !important;


                .page-link:hover
                color: #fff !important;
                background-color: #000 !important;
                border-color: #000 !important;






                share|improve this answer

























                  0












                  0








                  0







                  after a bit of messing about this is what i got to work;



                   .page-item.active .page-link 
                  color: #fff !important;
                  background-color: #000 !important;
                  border-color: #000 !important;


                  .page-link
                  color: #000 !important;
                  background-color: #fff !important;
                  border: 1px solid #dee2e6 !important;


                  .page-link:hover
                  color: #fff !important;
                  background-color: #000 !important;
                  border-color: #000 !important;






                  share|improve this answer













                  after a bit of messing about this is what i got to work;



                   .page-item.active .page-link 
                  color: #fff !important;
                  background-color: #000 !important;
                  border-color: #000 !important;


                  .page-link
                  color: #000 !important;
                  background-color: #fff !important;
                  border: 1px solid #dee2e6 !important;


                  .page-link:hover
                  color: #fff !important;
                  background-color: #000 !important;
                  border-color: #000 !important;







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 23 at 21:06









                  Scott MScott M

                  11




                  11



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid …


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f20182500%2fjquery-datatables-how-to-change-pagination-color%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

                      155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

                      Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?