Ahtsham Ajus
Posted on March 15, 2021
Here's my HTML code.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Positioning</title>
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div class="box box-four"></div>
<div class="boxes">
<div class="box box-one"></div>
<div class="box box-two"></div>
<div class="box box-three"></div>
</div>
</body>
</html>
Here's my CSS code.
.boxes {
border: 3px solid lightcoral;
}
.box {
width: 5rem;
height: 5rem;
}
.box-one {
background-color: lightgreen;
}
.box-two {
background-color: black;
}
.box-three {
background-color: blue;
}
.box-four {
background-color: orange;
position: relative;
left: 20rem;
top: 10rem;
}
💖 💪 🙅 🚩
Ahtsham Ajus
Posted on March 15, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
webdev Create a Stunning 3D Bend & Reveal Hover Effect with Illusionistic Background Using HTML & CSS
November 27, 2024