Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<title>flexbox | cleared box</title>
<style>
#float {
background: #3366cc;
padding: 1em;
float: left;
}
#flex {
background: #ffcc00;
padding: 2em;
clear: both;
}
div div {
background: pink;
height: 4em;
display: inline-block;
}
</style>
<div id="float">filler</div>
<div id="flex">
<div>Yellow box should be below the blue box</div>
</div>