I am trying to arrange three divs with background colors of Red, Yellow, and Blue. The goal is to have the Red div on the left, followed by the Yellow div next to it, and then the Blue div underneath the Yellow one. However, my current code is not producing the desired layout. Here is what I have:
<html>
<body>
<div style="background-color:Red; height:50%; float: left">Red</div>
<div style="background-color:Yellow; float: left; clear:right">Yellow</div>
<div style="background-color:Blue; float:left">Blue</div>
</body>
</html>
Despite my efforts, the Blue div ends up beside the Yellow div instead of below it. Any suggestions for achieving the correct positioning?