Here is what I am referring to (with two different colors):
I had to create two span divs and apply a border-right on one and a border-left on the other as my solution. However, I believe there must be a more efficient way to do this with less code.
HTML
<span class="border-right"></span>
<span class="border-left"></span>
CSS
.border-right { border-right: 1px solid #eee }
.border-left { border-left: 1px solid #888 }
Is there a better method to achieve this? Furthermore, since the height of the black background div varies, how can I ensure that the two span
elements cover from top to bottom regardless of the height?