How do I go about fixing the clearfix not working after "Bluebox", I don't want to create a new dif, I want to use :after or ::After to inject the code/clear after blue. The clear: both commands will work if I just throw it under orange box, but can I just have it happen after bluebox with no div?
#wrapper {
background: #000000;
height: 960px;
padding 20px;
}
#bluebox {
background: blue;
float: left;
}
#bluebox:after {
content: '';
display: block;
clear: both;
}
#orangebox {
background: orange;
float: left;
}
#greenbox {
background: green;
float: left;
}
.box {
height: 100px;
width: 100px;
}
<div id=wrapper>
<div id=bluebox class=box></div>
<div id=orangebox class=box></div>
<div id=greenbox class=box></div>
</div>