JSFiddle - React, Tailwind, and code Playground

by Brewal Renault

HTML

<div id="wrapper">
    <table>
        <thead>
            <tr><th>Col1</th><th>Col2</th><th>Col3</th></tr>
        </thead>
        <tbody>
            <tr><td>x</td><td>x</td><td>x</td></tr>
            <tr><td>x</td><td>x</td><td>x</td></tr>
            <tr><td>x</td><td>x</td><td>x</td></tr>
            <tr><td>x</td><td>x</td><td>x</td></tr>
            <tr><td>x</td><td>x</td><td>x</td></tr>
            <tr><td>x</td><td>x</td><td>x</td></tr>
            <tr><td>x</td><td>x</td><td>x</td></tr>
            <tr><td>x</td><td>x</td><td>x</td></tr>
        </tbody>
    </table>
</div>

CSS

* {
    margin: 0;
    padding: 0;
}
#wrapper {
    overflow: hidden;
    width: 80%;
    margin: 20px auto;
}
table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    position: relative;
}
td, th {
    border: 1px solid black;
}
th+th {
    width: 35%;
}
th+th:after {
    content: '';
    position: absolute;
    background: url('//placehold.it/80x80');
    display: block;
    height: 100%;
    width: 100%;
    top: 0;
    left: calc(30%+1px);
    z-index: -1;
}
th+th+th:after {
    background: url('//placehold.it/100x100');
    left: calc(65%+2px);
}