Note that there are some explanatory texts on larger screens.

plurals
  1. POopening a tab content from a submenu item
    primarykey
    data
    text
    <p>(Absolute beginner here...) I have a top menu with sub-menues in a one-page site built with Twitter Bootstrap. I'd like the submenu items to scroll to, and open <em>especific tab CONTENT</em> when clicked, but I can't seem to figure it out.</p> <p>My code goes like this:</p> <p>The nav:</p> <pre><code>&lt;li&gt;&lt;a href="#Section-1"&gt;Compa&amp;ntilde;&amp;iacute;a&lt;/a&gt;&lt;/li&gt; &lt;li class="dropdown"&gt;&lt;a href="#Section-2" class="dropdown-toggle js-activated" data-toggle="dropdown" data-hover="dropdown"&gt;Dise&amp;ntilde;o &lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt; &lt;ul class="dropdown-menu"&gt; &lt;li&gt;&lt;a href="#tab1"&gt;Diseño de marcas&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#tab2"&gt;Diseño editorial&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; </code></pre> <p>The tabs:</p> <pre><code> &lt;div class="row-fluid"&gt; &lt;div class="tabbable"&gt; &lt;!-- Only required for left/right tabs --&gt; &lt;ul class="nav nav-tabs"&gt; &lt;li class="active"&gt;&lt;a href="#tab1" data-toggle="tab"&gt;Seccion 1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#tab2" data-toggle="tab"&gt;Seccion 2&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;div class="tab-content"&gt; &lt;div class="tab-pane active" id="tab1"&gt; &lt;p&gt; &lt;img src="images/thumbnails/carteleria/16.jpg" height="160px" width="110px" style="float: left;margin-right: 10px"/&gt;Con talleres propios realizamos carteleria metal&amp;uacute;rgica de distintos formatos. Con la posibilidad de plegados de chapa, corte a plasma o laser, soldadura y el armado y articulaci&amp;oacute;n de los materiales, no tenemos limites para la construcci&amp;oacute;n de carteleria. Traiga su idea o necesidad y nosotros lo construimos.&lt;/p&gt; &lt;/div&gt; &lt;div class="tab-pane" id="tab2"&gt; &lt;p class="justify"&gt; Decoramos flotas de veh&amp;iacute;culos, a la vez que realizamos los planos de molderia especifica para cada veh&amp;iacute;culo. Por la realizaci&amp;oacute;n "in house" de todos los elementos, as&amp;iacute; como de nuestro grupo de instaladores expertos, nos colocan en un lugar inigualable en el mercado, por la calidad de elementos, y capacidad de respuesta para flotas de muchas unidades.&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>Any help would be deeply appreciated! Thanks in advance...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload