Despite my efforts, I still can't figure this out. My apologies for the duplication. I attempted to use text-align: center
, margin: 0 auto;
, and display: flex;
, but none of them worked as expected in the end.
I apologize for the messy formatting.
body {
background-color: #333;
}
div#BreadDiv {
display: inline-block;
text-align: center;
margin: 0 auto;
box-shadow: 0 2px 8px black;
border: 1px solid #4A4A4B;
}
ul.BreadUl {
display: inline-block;
position: static;
text-align: center;
list-style: none;
border: 1px solid #4A4A4B;
font-size: 150%;
padding: 8px 15px;
margin: 0 auto;
}
ul.BreadUl li {
display: inline-block;
color: #AAA;
text-align: center;
margin: 5px auto;
}
ul.BreadUl li+li:before {
content: "/ ";
}
ul.BreadUl li a {
color: #CCC;
text-decoration: none;
}
ul.BreadUl li a:hover {
text-decoration: underline;
}
<div id="BreadDiv">
<ul class="BreadUl">
<li><a href="#">Library</a></li>
<li><a href="#">Folder</a></li>
<li>Document</li>
</ul>
</div>