I have a block of html code and I need it right here in the body of the question
I have a block of html code and I need it right here in the body of the question
Take a look at the way I did, try to understand, and see if you can do other ways to learn better:)
section{
background-color: red;
width: 100%;
height: 100vh;
padding: 2%;
display: flex;
flex-wrap: wrap;
}
div{
background-color: orange;
width:47.5%;
height: 45%;
margin: 1%;
}
.box{
background-color: black;
width:47.5%;
height: 45%;
margin: 1%;
position: absolute;
top: 0;
position: absolute;
left: 24%;
right: 24%;
top: 30%;
}
<section>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div class="box"></div>
</section>