MBehtemam
MBehtemam

Reputation: 7919

Close Button for Twitter Bootstrap3 Tabs

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>

Upvotes: 0

Views: 219

Answers (1)

DonJuwe
DonJuwe

Reputation: 4563

You need to add class close to the button.

Upvotes: 3

Related Questions