Styling is not applied

Styling is not applied

chwlundchwlund Posts: 2Questions: 1Answers: 0
edited October 2019 in Free community support

Hi, I am totally new to datatables and a bit new to web development in general. I am trying to set up a basic example and I am able to load some test data and populate a table, but the table looks horrible and the css is apparently not applied. What am I doing wrong?

<html>

  <head>
    <title>Test site</title>
    
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css">
    <script type="text/javascript" charset="utf8" src="https://code.jquery.com/jquery-3.3.1.js"></script>
    <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script>
    <script src="js/index.js"></script>
    
  </head>

  <body>
  
      <table id="companies" class="display">
        <thead>
          <tr>
            <th>Orgnr</th>
            <th>Navn</th>
            <th>Poststed</th>
            <th>Adresse</th>
            <th>Antall ansatte</th>
            <th>Hjemmeside</th>
            <th>Dato stiftet</th>
            <th>Kategori</th>
          </tr>
        </thead>
      </table>
      
  </body>

</html>

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

Answers

This discussion has been closed.