Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<style>
    .content {
        background: green;
    }
    .table {
        display: table;
    }
    .row {
        display: table-row;
        height: 100px;
        border: 2px dashed black;
    }
    .cell {
        display: table-cell;
        height: 1px;
        background-color: orange;
        background-clip: content-box;
        border: 1px solid red;
    }
    div, html, body {
        height: 100%;
        width: 100%;
    }
</style>
<body>
    <div class="table"> <!-- Should be viewport height -->
        <div class="row"> <!-- Should be viewport height -->
            <div class="cell">
            </div>
        </div>
    </div>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers