I'm back with another probably lame CSS question.
So I have a container div, two paired divs within it, and each of them has two more divs. I want to justify all four with equal space between them.
What I have at the moment:
html:
<div class="container">
<div class="pairsWithinContainer">
<div>
</div>
<div>
</div>
</div>
<div class="pairsWithinContainer">
<div>
</div>
<div>
</div>
</div>
</div>
css:
.container {
width: 100%;
height: 200px;
background-color: blue;
padding: 2px;
}
.container > div {
display: inline-block;
width: 49.5%;
height: 200px;
background-color: yellow;
}
.pairsWithinContainer > div {
display: inline-block;
background-color: green;
width: 50px;
height: 100%;
}
JSFiddle: https://jsfiddle.net/tyzdhzt2/9/
What I want to do: http://sketchtoy.com/67874588
People who know CSS, help please.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…