<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[cambiare sfondo del sottomenu al passaggio del mouse]]></title><description><![CDATA[<p dir="auto">Salve ragazzi<br />
Ho creato un sottomenu e vorrei fare in modo che quando l'utente passa sopra le voci che lo compongono, lo sfondo da bianco passa a grigio chiaro (<a href="/hashtags/cccccc">#cccccc</a>).<br />
Non riesco a capire come modificare il file.</p>
<p dir="auto">Ecco la parte di codice che compone il sottomenu, sapete aiutarmi?<br />
Grazie</p>
<pre><code>.main-nav .sub-menu {
  display: none;
  margin: 0.75rem 0 -0.438rem;
  padding: 0;
}
@media screen and (min-width: 64.063rem) {
  .main-nav .sub-menu {
    margin-left: -1rem;
    margin-top: 0.62rem;
    position: absolute;
    width: 20rem;
  }
}
@media screen and (min-width: 64.063rem) {
  .main-nav .sub-menu .sub-menu {
    position: relative;
  }
}
.main-nav .sub-menu li {
  border-top: 0.063rem solid #fff;
  border-bottom: none;
  padding-right: 0;
  width: 100%;
}
@media screen and (min-width: 64.063rem) {
  .main-nav .sub-menu li {
    background: #fff;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
    color: #000;
    left: -1rem;
    margin-top: 0.0rem;
    padding: 0.000rem 0.500rem;
    position: relative;
    width: 50%;
  }
}
@media screen and (min-width: 64.063rem) {
  .main-nav .sub-menu li a {
    color: #000;
  }
}
</code></pre>
]]></description><link>https://dev.connect.gt/topic/226302/cambiare-sfondo-del-sottomenu-al-passaggio-del-mouse</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 05:27:19 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/226302.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Oct 2016 00:45:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to cambiare sfondo del sottomenu al passaggio del mouse on Mon, 31 Oct 2016 11:30:51 GMT]]></title><description><![CDATA[<p dir="auto">Ciao No_Stress,<br />
credo il problema stia nell'aggiungere <strong>a</strong><br />
In teoria tu vuoi che lo sfondo cambi colore, quindi solo l'elemento <strong>li</strong></p>
<p dir="auto">Se stai usando un tema wordpress è possibile che tu abbia delle classi più specifiche per l'elemento <strong>li</strong>, come ad esempio: menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children<br />
Quindi potresti provare così:</p>
<p dir="auto">.main-nav ul.sub-menu &gt; li.customclass:hover { background-color: <a href="/hashtags/ccc">#ccc</a>}</p>
<p dir="auto">se il tema è tuo aggiungi una classe specifica per questi <strong>li</strong></p>
<p dir="auto">Comunque utilizzando gli strumenti di ispezione per web master non dovrebbe essere troppo complesso trovare la classe interessata</p>
]]></description><link>https://dev.connect.gt/post/1229149</link><guid isPermaLink="true">https://dev.connect.gt/post/1229149</guid><dc:creator><![CDATA[glorialchemica]]></dc:creator><pubDate>Mon, 31 Oct 2016 11:30:51 GMT</pubDate></item><item><title><![CDATA[Reply to cambiare sfondo del sottomenu al passaggio del mouse on Fri, 28 Oct 2016 13:05:33 GMT]]></title><description><![CDATA[<p dir="auto">niente non va, ho provato sia con</p>
<p dir="auto">.main-nav .sub-menu li:hover a { color: #000; };<br />
che con<br />
.main-nav .sub-menu li:hover a { background color: #000; };</p>
<p dir="auto">ma niente...</p>
]]></description><link>https://dev.connect.gt/post/1229145</link><guid isPermaLink="true">https://dev.connect.gt/post/1229145</guid><dc:creator><![CDATA[no.stress]]></dc:creator><pubDate>Fri, 28 Oct 2016 13:05:33 GMT</pubDate></item><item><title><![CDATA[Reply to cambiare sfondo del sottomenu al passaggio del mouse on Fri, 28 Oct 2016 11:09:32 GMT]]></title><description><![CDATA[<p dir="auto">Dovresti essere in grado di farlo con un qualcosa del genere, se non erro:</p>
<pre><code>.main-nav .sub-menu li:hover a { color: #ccc; }
</code></pre>
]]></description><link>https://dev.connect.gt/post/1229136</link><guid isPermaLink="true">https://dev.connect.gt/post/1229136</guid><dc:creator><![CDATA[norman]]></dc:creator><pubDate>Fri, 28 Oct 2016 11:09:32 GMT</pubDate></item></channel></rss>