I want to place a square symbol between two hr tags to create a separator and i want the square to be in the middle of the lines. With this code the square is placed lower than the hr tags, not in the middle of them.
This is the html:
<div class="separator">
<hr width='150' align="left">
<span style="color: #fff;">■</span>
<hr width='150' align="right">
</div>
And here is the css:
separator {
margin: 5% 0;
}
hr {
border: none;
height: 2px;
background: #fff;
display: inline-block;
}