title: How to use CSS for NatTables
body: <p>How can I style a NatTable using CSS?</p>
  <p><a href="https://www.eclipse.org/nattable/nandn/nandn_140.php" rel="nofollow noreferrer">This page</a> shows a snippet that should explain how to use CSS for Nattables.</p>
  <blockquote>
  <p>To create a CSS style definition, the general selector NatTable can be used. Additionally a class or id based selector can be used. For example you can create a class based style definition</p>
  </blockquote>
  <pre><code>.basic {
      cell-background-color: white;
      text-align: left;
  }
  </code></pre>
  <blockquote>
  <p>And then configure that class for a NatTable instance via setData().</p>
  </blockquote>
  <pre><code>natTable.setData(CSSSWTConstants.CSS_CLASS_NAME_KEY, &quot;basic&quot;);
  </code></pre>
  <p>But it's unclear how to tell the NatTable (or eclipse) where to look for that CSS file.</p>