JSFiddle - React, Tailwind, and code Playground

by andrewgunn

HTML

<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
<div>
    <table class="table table-bordered table-striped">
        <thead>
            <tr>
                <th>
                    1        
                </th>
                <th>
                    2
                </th>
                <th>
                    3
                </th>
                <th>
                    4
                </th>
                <th>
                    5
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
        </tbody>
    </table>
</div>

CSS

div {
    padding: 5%;
    zoom: 5; /* Make it easier to see the bug! */
}

table {
    background-color: red;
}

th {
    background-color: blue;
    color: #fff;
}

.table-bordered {
    border-left: 1px solid #DDD
}

.table-bordered th, .table-bordered td {
    border-left: none;
}

.table-bordered thead:first-child tr:first-child > th:first-child, 
.table-bordered tbody:first-child tr:first-child > td:first-child {
    -webkit-border-top-left-radius: 3px;
    border-top-left-radius: 3px;
    -moz-border-radius-topleft: 3px;
}

.table-bordered thead:first-child tr:first-child > th:last-child, 
.table-bordered tbody:first-child tr:first-child > td:last-child {
    -webkit-border-top-right-radius: 3px;
    border-top-right-radius: 3px;
    -moz-border-radius-topright: 3px;
}