0

I try to follow from this fiddle to adding close button to Twitter Bootstrap Tabs but i can't create a close button correctly.this is my jsbin codes. how can i make a close. i try to create with a tag but tabs make my link block level when i have 2 link in one li.

 <ul class="nav nav-tabs">
    <li class="active"><a href="#">Tab 1 <button><i class="fa fa-times"></i></button></a>     </li>
    <li><a href="#">Tab 2</a></li>
    <li><a href="#">Tab 3</a></li>
  </ul>

Solution

I forget to insert class="close" for button so the correct is :

<button class="close"><i class="fa fa-times"></i></button>
MBehtemam
  • 7,865
  • 15
  • 66
  • 108

1 Answers1

3

You need to add class close to the button.

DonJuwe
  • 4,477
  • 3
  • 34
  • 59