Forum Moderators: open
<ul>
<li>Phrase 1</li>
<li>Phrase 2</li>
<li>Phrase 3</li>
<li>Phrase 4</li>
<li>Phrase 5</li>
<li>Phrase 6</li>
</ul>
ul,
li {
list-style: none;
list-style-position: inside;
margin: 0;
padding: 0;
display: inline-block;
text-align: center;
}
ul {
width: 200px;
margin: 0 auto;
background: #eee;
display: block;
}
li:nth-child(4) {
border-right: 1px solid black;
}
Is there a semantic break between items 3 and 4?
One option is to code it as two separate lists-- 123 and 456-- and set each one to {display: inline-block; text-align: center;} That way, if someone has a huge browser window they will display side by side, taking up less vertical space, but in smaller windows you'll get two rows.
What does the | represent? I assume you don't have a page called Pipe. If it's purely a visual feature, get it out of the html and into css.