0

I have to display image instead of text in bootstrap drop down menu (not in sub menu). I don't know how to achieve this. Can anyone help me in achieving that?

Birlla
  • 1,700
  • 2
  • 15
  • 17

1 Answers1

0

you do like so :

Exemple :

<div class="dropdown">
  <button id="dLabel" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    <img src="http://www.goodfellasmagazine.com/wp-content/uploads/2013/11/Most-famous-lol-face.jpg" alt="">
    <span class="caret"></span>
  </button>
  <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
   your texte here :  
  </ul>
</div>

LIVE DEMO

ZEE
  • 5,669
  • 4
  • 35
  • 53