You can apply borderto your elements spanto get horizontal dividers:
p span:not(:first-child){
border-left:1px solid #000;
}
Example
But you have to change your structure to apply a vertical separator. Like this:
HTML:
<p>
<span>Lorem</span>
<span>ipsum</span>
<span>dolor</span>
</p>
<p>
<span>sit</span>
<span>amet</span>
<span>consecutetur</span>
</p>
CSS:
p:not(:first-child){
border-top:1px solid #000;
}
Example
source
share