<div class="parent">
<div class="one"></div>
<div class="two"></div>
</div>
.one{
width:50px;
height:50px;
margin:25px;
background-color:red;
}
.two{
width:50px;
height:50px;
margin:25px;
background-color:blue;
}
.parent{
margin:35px;
width:100px;
background-color:aqua;
}
.parent::before,
.parent::after {
content: ' ';
display: table;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.