Work test

testing 100% children divs

by Joshua Powell

HTML

<div class="content">
    <div class="test1">
        <div class="fill"></div>
    </div>
    <div class="test2">
        <div class="fill2"></div>
    </div>
</div>

CSS

.content {
    position: relative;
    width: 400px;
    height: 800px;
    margin: 0 auto;
    background: #9b9b9b;
}

.test1 {
    position: absolute;
    width: 150px;
    height: 100%;
    background: #7b7b7b;
}

.test2 {
    position: absolute;
    width: 150px;
    height: 100%;
    background: #7b7b7b;
    margin-left: 200px;
}

.fill {
    height: 300px;
    width: 150px;
}

.fill2 {
    height: 500px;
    width: 150px;
}