<?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 background al &quot;contenitore&quot; se si passa sopra il contenuto.]]></title><description><![CDATA[<p dir="auto">Ragazzi, mi rifaccio vivo per un problema che mi assilla ormai <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f622.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--cry" style="height:1.4em;width:auto;vertical-align:middle" title=":cry:" alt="😢" /></p>
<p dir="auto">Allora, ho questo codice:</p>
<pre><code class="language-html">&lt;td width="100%" class="forum-buttons" colspan="3"&gt;
        &lt;a href="{FULL_SITE_PATH}{U_PORTAL}"&gt;{L_HOME}&lt;/a&gt;&lt;img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" /&gt;
        &lt;a href="{FULL_SITE_PATH}{U_INDEX}"&gt;{L_INDEX}&lt;/a&gt;&lt;img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" /&gt;
        &lt;!-- BEGIN switch_upi2db_off --&gt;
        &lt;a href="{FULL_SITE_PATH}{U_SEARCH_NEW}"&gt;{L_NEW2}&lt;/a&gt;&lt;img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" /&gt;
        &lt;!-- END switch_upi2db_off --&gt;
        &lt;!-- IF S_LOGGED_IN --&gt;
        &lt;a href="{FULL_SITE_PATH}{U_PROFILE}"&gt;{L_PROFILE}&lt;/a&gt;&lt;img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" /&gt;
        &lt;!-- ENDIF --&gt;
        &lt;!-- IF S_HEADER_DROPDOWN --&gt;
        &lt;a href="{FULL_SITE_PATH}{U_SEARCH}" onmouseover="dropdownmenu(this,event,menu1,'250px')" onmouseout="delayhidemenu()"&gt;{L_SEARCH}&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" /&gt;&amp;nbsp;
        &lt;!-- ELSE --&gt;
        &lt;a href="{FULL_SITE_PATH}{U_SEARCH}"&gt;{L_SEARCH}&lt;/a&gt;&lt;img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" /&gt;
        &lt;!-- ENDIF --&gt;
        &lt;a href="{FULL_SITE_PATH}{U_FAQ}"&gt;{L_FAQ}&lt;/a&gt;&lt;img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" /&gt;
        &lt;!-- IF not S_LOGGED_IN --&gt;
        &lt;a href="{FULL_SITE_PATH}{U_REGISTER}"&gt;{L_REGISTER}&lt;/a&gt;&lt;img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" /&gt;
        &lt;!-- ENDIF --&gt;
        &lt;a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}"&gt;{L_LOGIN_LOGOUT2}&lt;/a&gt;&lt;img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" /&gt;
    &lt;/td&gt;
</code></pre>
<p dir="auto">E questo css per la classe <strong>forum-buttons</strong>:</p>
<pre><code>.forum-buttons {
    text-align: center;
    vertical-align: middle;
    font-size: 11px;
    font-weight: bold;
    height: 28px !important;
    color: #e8e8ee;
    background: #121720 url('images/p_blue/bg_forum-buttons.gif') no-repeat center top;
    overflow: hidden;
}

.forum-buttons a, .forum-buttons img {
    float: left;
}
.forum-buttons a, .forum-buttons a:visited {
    color: #023353;
    font-weight: bold;
    text-decoration: none;
    display: block;
    padding: 7px;
}

.forum-buttons a:hover, .forum-buttons a:active {
    color: #fff;
}
</code></pre>
<p dir="auto">Allora, dovrei fare in modo che il background della tabella, quindi di <strong>forum-buttons</strong> si sposti quando passo sopra un link, ma solo nel link.</p>
<p dir="auto">Cioè, ora i link non hanno background, si vede quello della tabella, quando passo sopra, solo dietro al link in hover, devo spostare lo sfondo della tabella.</p>
<p dir="auto">In pratica deve fare da:</p>
<pre><code>background: #121720 url('images/p_blue/bg_forum-buttons.gif') no-repeat center top;
</code></pre>
<p dir="auto">a:</p>
<pre><code>background: #121720 url('images/p_blue/bg_forum-buttons.gif') no-repeat center bottom;
</code></pre>
<p dir="auto">Ho provato così:</p>
<pre><code>.forum-buttons:hover a:hover {
    background: #121720 url('images/p_blue/bg_forum-buttons.gif') no-repeat center bottom;
}
</code></pre>
<p dir="auto">Funziona se passo sopra il link, il problema che mi scorre SEMPRE la stessa parte dello sfondo, per tutti i link, non il background in generale.</p>
<p dir="auto">Potete vedere l'esempio qui: <strong>hxtp://revontulet.altervista.org/</strong><br />
Come potete vedere dietro al link si vede sempre la stessa parte dello sfondo, mentre si dovrebbe vedere quella che si vede quando NON si è in :hover però più scura.</p>
<p dir="auto">Non so se si è capito il problema, in ogni caso grazie in anticipo <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>https://dev.connect.gt/topic/100258/cambiare-background-al-quot-contenitore-quot-se-si-passa-sopra-il-contenuto</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 20:36:59 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/100258.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 Apr 2009 09:28:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cambiare background al &quot;contenitore&quot; se si passa sopra il contenuto. on Thu, 30 Apr 2009 13:06:00 GMT]]></title><description><![CDATA[<p dir="auto">Vorrei evitare di usare Javascript, ancora di meno Flash.</p>
<p dir="auto">Vorrei fare tutto con il css, credo sia possibile, senza appoggiarmi a queste cose <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
<p dir="auto">E' strano che dia errore, ho messo hxtp perchè non posso inserire link diretti.</p>
<p dir="auto">In pratica l'immagine di sfondo del menu è fatta in modo che passandoci sopra venga fatto il roll over.</p>
<p dir="auto">Però farlo SOLO nel link in cui passo sopra.</p>
<p dir="auto"><img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/f71a0c43-865f-4388-9868-8b387eebeeb1-mmmm.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--mmm" style="height:1.4em;width:auto;vertical-align:middle" title=":?" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/826796</link><guid isPermaLink="true">https://dev.connect.gt/post/826796</guid><dc:creator><![CDATA[federicobiccheddu]]></dc:creator><pubDate>Thu, 30 Apr 2009 13:06:00 GMT</pubDate></item><item><title><![CDATA[Reply to Cambiare background al &quot;contenitore&quot; se si passa sopra il contenuto. on Wed, 29 Apr 2009 15:20:54 GMT]]></title><description><![CDATA[<p dir="auto">Non è che ho capito proprio bene.. comunque per una animazione più complessa forse è meglio se ti affidi al javascript o al flash.. l'url da te postato non mi va... da errore di connessione al db... o che il server è sovraccarico..</p>
]]></description><link>https://dev.connect.gt/post/826798</link><guid isPermaLink="true">https://dev.connect.gt/post/826798</guid><dc:creator><![CDATA[pgmedia]]></dc:creator><pubDate>Wed, 29 Apr 2009 15:20:54 GMT</pubDate></item></channel></rss>