Note that there are some explanatory texts on larger screens.

plurals
  1. POspecialize color for a single link
    text
    copied!<p>I'm trying to create a css menu bar that has all grey text with the exception of a single link, however every attempt I've made either produces all grey or all green link text.</p> <p>If you look below, EcoSolutions should be green and the rest grey</p> <p>I've included my latest attempt.... hopefully someone can put an end to my madness :D</p> <p>Thanks</p> <pre><code>&lt;ul id='Navigation' class='MenuBar'&gt; &lt;li&gt;&lt;a href="../index.php"&gt;Home&lt;/a&gt; &lt;img src='images/separator.jpg'/&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="../simplify.php"&gt;Simplify&lt;/a&gt; &lt;img src='images/separator.jpg'/&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="../ecosolutions.php"class="green"&gt;EcoSolutions&lt;/a&gt; &lt;img src='images/separator.jpg'/&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="../contact_us.php"&gt;Contact&lt;/a&gt; &lt;img src='images/separator.jpg'/&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="../partners.php"&gt;Partners&lt;/a&gt; &lt;img src='images/separator.jpg'/&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="../services.php"&gt;Services&lt;/a&gt; &lt;img src='images/transSeparator.png'/&gt;&lt;/li&gt; &lt;/ul&gt; /**** MenuBar STYLES ****/ .MenuBar { width: 916px; padding: 0px 0px 0px 50px; margin: 0px 0px 0px 0px; text-align: center; color: #888; } .MenuBar ul { list-style-type: none; font-size: .9em; cursor: default; font-weight: bold; padding: 10px 0px 0px 0px; margin: 0px 0px 0px 0px; font-family:Verdana, Geneva, sans-serif; color: #888; } .MenuBar ul li img { padding: 0px 0px 0px 0px; margin: 0px 25px 0px 25px; vertical-align: middle; } .MenuBar li { list-style-type: none; font-size: .9em; position: relative; cursor: pointer; text-decoration: none; text-align: center; float: left; height: 37px; padding: 0px; margin: 0px 0px 0px 0px; top: auto; bottom: auto; font-family:Verdana, Geneva, sans-serif; color: #888; } .green a:link, a:visited, a:active { display: inline; color: #94cf01; padding: 0px; margin: 0px; text-decoration: none; } .MenuBar ul li a:link, a:visited, a:active { display: inline; cursor: pointer; color: #888; padding: 0px; margin: 0px; text-decoration: none; } .MenuBar ul li a:hover { display: inline; color: #FF0000; padding: 0px; margin: 0px; } </code></pre>
 

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