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