Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS rollover navigation
    text
    copied!<p>I haven't really ever done a background navigation rollover, I usually just change the colour of the text once it's been rolled over. However I'm try to do this now but can't seem to get it right. </p> <p>I'm trying to do it all with CSS as I believe there is a way however I do see a lot of others using sprites and image rollovers. Which way is the best? I might end up having a lot of images on my website so I'm trying to stay away from them so I myself, am thinking strictly CSS. There is a way right? </p> <p><a href="http://ambergoodwin.com/fhl/index.html" rel="nofollow noreferrer">This is my website</a></p> <p>CSS </p> <pre><code>#main-navigation { width: 100%; height: 100px; background: url(../img/NAV-BG.jpg) top center no-repeat; text-transform: uppercase; font-size: 1em; letter-spacing: 1px; line-height: 90px; /*border: 1px solid #000;*/ } #main-navigation ul { width: 860px; list-style: none; margin: 0 auto; text-align: center;} #main-navigation li { float: left ;margin-left: 30px; } #main-navigation li a { display: block; text-decoration: none; color: #000; } #main-navigation li a:hover { color: #c7bd89; background-color: #900; width: 120%; height: 30px; -moz-border-radius: 5px; border-radius: 5px; margin: 0 auto; margin-top: 20px;} </code></pre> <p>HTML</p> <pre><code>&lt;nav id="main-navigation"&gt; &lt;ul id="main-nav-left"&gt; &lt;li class="current"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Current Season&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Past Seasons&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Partners/Sponsors&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/nav&gt; </code></pre> <p>But I want it to look like this <img src="https://i.stack.imgur.com/Rqovl.png" alt="enter image description here"></p> <p>What am I missing?</p>
 

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