Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tab gets displayed in next line with visible class

I have a simple bootstrap breadcrumb:

    <ul class="breadcrumb" id="tree_form_selector">
      <li data-tabselector="allgemeine_angaben" class="active tabselector" >
        Allgemeine Angaben
      </li>
      <li data-tabselector="pflegezustand" class="tabselector">
        <a href="#" >Pflegezustand</a>
      </li>
      <li data-tabselector="blüte_und_ertrag" class="tabselector">
        <a href="#" >Blüte und Ertrag</a>
      </li>
      <!-- Wird nur bei computernn/nicht bei mobile gezeigt -->
      <li data-tabselector="qr_code" class="visible-md tabselector">
        <a href="#" >QR-Code</a>
      </li>
      <!-- Wird nur bei mobile gezeigt -->
      <li data-tabselector="camera" class="visible-xs tabselector">
        <a href="#" >Kamera</a>
      </li>
    </ul>

As you can see the tabs with the tabselectors camera and qr_code both have a visible class.

Because of that the tabs are displayed in a new line.

enter image description here

How can I prevent this? Or how can I display them only on specific viewport-sizes?Thanks

http://jsfiddle.net/52VtD/13428/

like image 256
John Smith Avatar asked Jan 26 '26 01:01

John Smith


1 Answers

You will have to use the visible-xs-inline that way it won't brake the line because I think it defaults to block. Here is the code using the inline.

Fiddle

Detailed information here : Bootstrap

like image 116
nestedl00p Avatar answered Jan 27 '26 13:01

nestedl00p



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!