console
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="float_two.css">
</head>
<body>
<div class="box-one">
<div class="left-one"></div>
<div class="right-one"></div>
</div>
<div class="box-two">
<div class="right-two"></div>
<div class="left-two"></div>
</div>
</body>
</html>
.box-one {
position: relative;
width: 100%;
height: 400px;
}
.left-one {
width: 300px;
height: 100%;
background-color: greenyellow;
float: left;
}
.right-one {
height: 100%;
background-color: rebeccapurple;
}
.box-two {
position: relative;
margin-top: 10px;
width: 100%;
height: 400px;
}
.right-two {
width: 300px;
height: 100%;
background-color: greenyellow;
float: right;
}
.left-two {
height: 100%;
background-color: rebeccapurple;
}