JSFiddle - React, Tailwind, and code Playground

by willemvb

HTML

<div class="container small">
    <iframe src="//doc.jsfiddle.net"></iframe>
</div>

<div class="container small">
    <table cellspacing="10" cellpadding="0">
        <tr><td>
                <iframe src="//doc.jsfiddle.net"></iframe>
            </td></tr>
    </table>
</div>

<div class="container">
    <iframe src="//doc.jsfiddle.net"></iframe>
</div>

<div class="container">
    <table cellspacing="10" cellpadding="0">
        <tr><td>
                <iframe src="//doc.jsfiddle.net"></iframe>
            </td></tr>
    </table>
</div>

CSS

.container
{
    position: relative;
    margin: 10px;
    border: 1px solid #999;
    padding: 10px;
    background-color: #ddd;
    height: 180px;
}
    .container.small { height: 60px; }

iframe
{
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0 none;
    outline: 0 none;
    padding: 0;
}

table
{
    width: 100%;
    height: 100%;
}
table td
{
    height: 100%;
}

table,
tbody,
tr,
td{
   position: relative;
   display: block;
   width: 100%;
   height: 100%;   
}