-1

I am trying to insert a table in my post on https://stats.stackexchange.com/.

This code works well on https://jsfiddle.net/:

<pre>
<style type="text/css">
.tg  {border-collapse:collapse;border-spacing:0;}
.tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:black;}
.tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:black;}
.tg .tg-0pky{border-color:inherit;text-align:left;vertical-align:top}
</style>
<table class="tg">
  <tr>
    <td class="tg-0pky">10.3</td>
    <td class="tg-0pky">11.3</td>
    <td class="tg-0pky">-0.72</td>
  </tr>
  <tr>
    <td class="tg-0pky">16.2</td>
    <td class="tg-0pky">10.9</td>
    <td class="tg-0pky">-0.84</td>
  </tr>
  <tr>
    <td class="tg-0pky">18.1</td>
    <td class="tg-0pky">15.2</td>
    <td class="tg-0pky">0.64</td>
  </tr>
</table>
</pre>

Renders a HTML table:

enter image description here

However, SE renders the code as:

enter image description here

  • 1
    I'm voting to close this question as off-topic because it's about Stack Exchange. Please read the tag wiki for further details. – Rubén Mar 26 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.