I'm trying to put the arrow on top in the middle of two div like this picture: link.
The code below doesn't work and I'm trying to make it work with position : absolute ;
but I don't know how.
.section1 {
background-color: lightgray;
text-align: center;
padding: 100px;
}
.content {
display: inline-block;
}
.section1 .separator {
margin: 0 auto;
position: absolute; /* XXX this does something weird */
bottom: 0;
}
.section2 {
height: 200px;
background-color: coral;
}
<div class="section1">
<div class="content">
Hello, world!
</div>
<div class="separator">
▼
</div>
</div>
<div class="section2">
<div class="content">
Hello, world!
</div>
</div>