I've looked at other questions, but I still couldn't make this out. Sorry for the repost. I tried using text-align: center
, margin: 0 auto;
and display: flex;
but it didn't work out in the end.
I'm really sorry for the bad 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>