Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<title>CSS aspect-ratio reference: block formatting context with floats</title>
<div style="width: 200px; border: solid 1px; display: flow-root;">
<div style="float: left; width: 50px; height: 50px; background: lime;"></div>
<div style="float: right; width: 50px; height: 50px; background: hotpink;"></div>
<div style="float: left; width: 160px; height: 50px; background: aqua;"></div>
<div style="float: right; width: 40px; height: 40px; background: orange;"></div>
</div>