Skip to content

Instantly share code, notes, and snippets.

@oli
Created June 6, 2016 06:47
Show Gist options
  • Select an option

  • Save oli/29bb5bc7a6fa9bbd87cc8933d8bfe827 to your computer and use it in GitHub Desktop.

Select an option

Save oli/29bb5bc7a6fa9bbd87cc8933d8bfe827 to your computer and use it in GitHub Desktop.

Revisions

  1. oli created this gist Jun 6, 2016.
    23 changes: 23 additions & 0 deletions dabblet.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    /**
    * Table layout and ellipsis
    */

    .table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%
    }
    td {
    width: 200px;
    min-width: 200px;
    border: 1px solid #eee;
    padding: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    }
    td:last-child {
    width: 400px;
    min-width: 200px;
    max-width: 400px;
    }
    11 changes: 11 additions & 0 deletions dabblet.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    <table class="table">
    <tbody>
    <tr>
    <td>Testing testinG</td>
    <td>Testing testinG</td>
    <td>Testing testinG</td>
    <td>Testing testinG</td>
    <td>Testing testing testing testing testing testing testing</td>
    </tr>
    </tbody>
    </table>
    1 change: 1 addition & 0 deletions dabblet.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    // alert('Hello world!');
    1 change: 1 addition & 0 deletions settings.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    {"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}