Skip to content

Instantly share code, notes, and snippets.

@andrexx
Created June 14, 2014 13:21
Show Gist options
  • Save andrexx/22a527cf0f0ffb7d9d7a to your computer and use it in GitHub Desktop.
Save andrexx/22a527cf0f0ffb7d9d7a to your computer and use it in GitHub Desktop.

Revisions

  1. andrexx created this gist Jun 14, 2014.
    13 changes: 13 additions & 0 deletions example
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    <table class="result-table">
    <tr>
    <td colspan="2" class="wordwrap"><div class="result-title">@Model.Result.RequestType </div></td>
    </tr>
    <tr>
    <td class="col1">1</td>
    <td class="col2 wordwrap">@Model.Result.RegistrationNumber</td>
    </tr>
    <tr>
    <td class="col1">2</td>
    <td class="col2 wordwrap">@Model.Result.RegistrationDate</td>
    </tr>
    </table>
    14 changes: 14 additions & 0 deletions wordwrap
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    .wordwrap {
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
    }

    .result-table {
    width: 100%;
    border-collapse: separate;
    table-layout:fixed;
    }