Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<style>
    .content {
        background-color: green;
    }
    .table {
        display: table;
    }
    .row {
        display: table-row;
    }
    .cell {
        display: table-cell;
        height: 1px;
    }
    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"> <!-- Should be 1px height -->
                <div class="content"> <!-- Should be 1px height -->
                </div>
            </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