Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS Navigation current page
    primarykey
    data
    text
    <p>I have problem with setting up a navigation bar which would show change depending on section I am on page. Hover works fine but not it just stays in regular style when i'm on different pages but it should be in hover state.</p> <p>This is how my navigation looks like in <strong>HTML</strong></p> <blockquote> <pre><code> &lt;nav id="primary"&gt; &lt;ul&gt; &lt;li&gt; &lt;a class="home" href="#home"&gt;MAIN_PAGE&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a class="challenge" href="#challenge"&gt;CHALLENGE&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a class="zones" href="#zones"&gt;FIVE_LETHAL_ZONES&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a class="sprintframe" href="#sprintframe"&gt;SPRINTFRAME&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a class="hybridtouch" href="#hybridtouch"&gt;HYBRIDTOUCH&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a class="micoach" href="#micoach"&gt;MICOACH_SPEED_CELL&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a class="traxion" href="#traxion"&gt;TRAXION_2.0_FG&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a class="shop" href="#shop"&gt;SHOP_NOW&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/nav&gt; </code></pre> </blockquote> <p>This is how my <strong>CSS</strong> navigation styling looks like(the png is 2 dots in 2 colors.)</p> <pre><code>nav#primary { z-index: 100000000; position: fixed; top: 50%; right: 16px; margin-top: -40px; } nav#primary li { position: relative; height: 20px; } nav#primary a { display: block; width: 20px; height: 20px; text-indent: -9999px; background: transparent url('../images/nav-dot.png') 4px 4px no-repeat; } nav#primary a:hover, nav#primary a.active { background: transparent url('../img/nav-dot.png') 4px -16px no-repeat; } </code></pre>
    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