I found this way to add default icons to any HTML page using i element : W3.CSS Icons
Can I use the same way to have custom icon with the same way by adding my image?
adding markup after changes :
<li class="treeview">
<a href="#"><span class="icon"></span><span>Main Itmes</span> <i class="fa fa-angle-left pull-right"></i></a>
<ul class="treeview-menu">
<li>
<a href="/Page1.aspx">Item1</a>
</li>
<li>
<a href="/Page2.aspx">Item2</a>
</li>
<li>
<a href="/Pagee3.aspx">Item3</a>
</li>
</ul>
</li>
CSS :
<style>
.icon {
background: url("Images/logo.png");
height: 20px;
width: 20px;
display: block;
/* Other styles here */
}
</style>