-4
I have a block of html code and I need it here in the body of the question
-1
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>
Browser other questions tagged html css div positioning responsive
You are not signed in. Login or sign up in order to post.
Good evening. what have you done? edit your question and post the code you tried to do so the community can help you better.
– OtavioCapel
I’m learning to use the forum, kkk to post the code
– Disney
take a look at the answer I sent you, see if it helps you
– OtavioCapel
https://answall.com/tour
– LipESprY
Put your HTML code in the question, right after select all the HTML code and click on
{}
orCtrl + k
– user60252
But your question is how to use Stackoverflow ? If yes this question should be in the goal
– Isac
To learn how to format code in posts, see Help Center. In the specific case of HTML/CSS/Javascript, it is possible (and recommended) to use snippets
– hkotsubo