Note that there are some explanatory texts on larger screens.

plurals
  1. POHighlight active tab in navigation menu
    primarykey
    data
    text
    <p>My question is : I have a menu items, and I want to highlight the active tab that users switch to that points to another page for sure .<br> <br> stackover flow use :</p> <pre><code>.nav { float: left; font-size: 125%; } .nav ul { margin: 0; } .nav li { background: none repeat scroll 0 0 #777777; display: block; float: left; margin-right: 7px; } **.nav .youarehere { background: none repeat scroll 0 0 #FF9900; }** .youarehere a { color: #FFFFFF; } .nav li:hover { background-color: #FF9900; } .nav a { color: #FFFFFF; display: block; padding: 6px 12px; text-decoration: none; } </code></pre> <p>Can anybody tell me what else they use to make this work ?</p> <p>menu :</p> <pre><code>&lt;ul class="nav"&gt; &lt;li&gt; &lt;a href="{$smarty.const._URL}/index.{$smarty.const._FEXT}" class="wide-nav-link menu_link" &gt;{$lang.homepage}&lt;/a&gt;&lt;/li&gt; &lt;li class="dropdown"&gt; &lt;a href="#" class="dropdown-toggle wide-nav-link menu_link " data-toggle="dropdown"&gt;{$lang.category} &lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt; &lt;ul class="dropdown-menu menu_link"&gt; {dropdown_menu_video_categories} &lt;/ul&gt; &lt;/li&gt; {if $smarty.const._MOD_ARTICLE == 1} &lt;li class="dropdown"&gt; &lt;a href="#" class="dropdown-toggle wide-nav-link menu_link " data-toggle="dropdown"&gt;{$lang.articles} &lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt; &lt;ul class="dropdown-menu menu_link"&gt; {dropdown_menu_article_categories} &lt;/ul&gt; &lt;/li&gt; {/if} &lt;li&gt; &lt;a href="{$smarty.const._URL}/topvideos.{$smarty.const._FEXT}" class="wide-nav-link menu_link "&gt;{$lang.top_videos}&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="{$smarty.const._URL}/newvideos.{$smarty.const._FEXT}" class="wide-nav-link menu_link"&gt;{$lang.new_videos}&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="{$smarty.const._URL}/randomizer.php" rel="nofollow" class="wide-nav-link menu_link"&gt;{$lang.random_video}&lt;/a&gt;&lt;/li&gt; {if isset($mm_menu_always_inject1)}{$mm_menu_always_inject1}{/if} &lt;li&gt;&lt;a href="{$smarty.const._URL}/contact_us.{$smarty.const._FEXT}" class="wide-nav-link menu_link"&gt;{$lang.contact_us}&lt;/a&gt;&lt;/li&gt; {if isset($mm_menu_always_inject2)}{$mm_menu_always_inject2}{/if} {if $logged_in != 1 &amp;&amp; isset($mm_menu_notlogged_inject)}{$mm_menu_notlogged_inject}{/if} &lt;/ul&gt; </code></pre>
    singulars
    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.
 

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