Colleagues.
I have a Bootstrap menu from which I would like to place the Awesome Font icons next to each item in that menu. The HTML looks like this:
<ul class="dropdown-menu">
<li><a href="#">Todos os nomes</a></li>
<li><a href="#">Nome A</a></li>
<li><a href="#">Nome B</a></li>
<li><a href="#">Nome C</a></li>
<li><a href="#">Nome D</a></li>
<li><a href="#">Nome E</a></li>
</ul>
The CSS of the dropdown-menu looks like this:
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
padding: 5px 0;
margin: 2px 0 0;
font-size: 14px;
list-style: none;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, .15);
border-radius: 4px;
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}
When I visited the official Font Awesome website, I found a native class of them fa-ul and fa-li , so I put it this way:
<ul class="dropdown-menu fa-ul">
<li><a href="#">Todos os nomes</a></li>
<li><a href="#"><i class="fa-li fa fa-check-square"></i> Nome A</a></li>
<li><a href="#">Nome B</a></li>
<li><a href="#">Nome C</a></li>
<li><a href="#">Nome D</a></li>
<li><a href="#">Nome E</a></li>
</ul>
The icon appeared but burst from our left side. See next to Name A :
How would I fix it?