You cannot set the property borderon your own. However, using a pseudo-element may be useful here ( see Exaggerated Live Example ):
HTML (maybe - other configurations are possible)
<div class="menu"><span>Home</span><span>About</span><span>Last</span></div>
CSS
.menu span {font-size: 2em; padding: 10px; position: relative;}
.menu span:after {content: ''; position: absolute; right: 0; top: .6em; bottom: .6em; width: 1px; background-color: black;}
.menu > span:last-child:after {display: none;}
source
share