<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#div1
{
height: 200px;
float: left;
background-color: aqua;
}
#div2
{
height: 200px;
float: right;
background-color: rgb(237, 8, 8);
}
#div4
{
height: 200px;
background-color:lightcoral;
}
#div3
{
clear: both;
}
</style>
</head>
<body>
<div id="div1">
this is div1
</div>
<div id="div2">
this is div2
</div>
<div id="div3">
</div>
<div id="div4">
this is div3
</div>
</body>
</html>
0 Comments