3
My question is how to position the black div below the red when the browser is resized?
.teste2 {
float:right;
width: 200px;
height: 100px;
margin-top: -100px;
background-color:black;
}
#teste {
width: 200px;
height: 100px;
display: flex;
flex-wrap: wrap;
background-color: red;
display: -webkit-flex; /* Safari */
-webkit-flex-wrap: wrap; /* Safari 6.1+ */
}
<header id="header" style="width: 100%;">
<div id="teste"></div>
<div class="teste2"></div>
</header>
Friend, it worked just by modifying the css. However, the black div is not aligned with the red div. You could align them?
– gemerich
I added another example in the answer, check if this is what you need...
– ℛɑƒæĿᴿᴹᴿ
All right, big hug!
– gemerich