Change color of hyperlinks to black

Change color of hyperlinks to black

neelsfneelsf Posts: 15Questions: 6Answers: 1
edited July 2017 in Free community support

All my data in the table has a hyperlink href attached and the color is now light blue. How can i change it to black or bold to make it darker and easier to read?

<script type="text/javascript" language="javascript" >
            $(document).ready(function() {
                var dataTable = $('#employee-grid').DataTable( {
                    "processing": true,
                    "serverSide": true,
                    "columnDefs": [ {
                          "targets": 0,
                         "orderable": false,
                          "searchable": false,
                          "className": "dt-center", "targets": "_all",
                           "render": function ( data, type, row ) {
                            return '<a href="update2u.php?u=' + row[1] +'">' + data + '</a>';`

Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    Define your own CSS style.

    <a href="something" class="myCSSclass".......
    
  • allanallan Posts: 63,482Questions: 1Answers: 10,467 Site admin

    Or use CSS to change the default colour:

    table.dataTable a {
      color: red;
    }
    

    Allan

  • neelsfneelsf Posts: 15Questions: 6Answers: 1

    Thank you, thank you it worked Allan

This discussion has been closed.