Is there a way to stack the green DIVs on top of each other without any space between them in the given simple HTML code? I'm puzzled by the gap between the third and fourth green DIVs.
* {
margin: 0;
}
.left {
width: 20%;
background-color: #00CC66;
height: 50px;
float: left;
clear: left;
}
.right {
width: 20%;
background-color: #0033FF;
height: 99px;
float: right;
clear: right;
}
<div class="left"></div>
<div class="right"></div>
<div class="left"></div>
<div class="right"></div>
<div class="left"></div>
<div class="right"></div>
<div class="left"></div>
<div class="right"></div>