Change margin of one class if another class display: none
<p>I need to setup an if statement similar to:</p>

<p>If <code>divID1</code> element <code>style="display:block"</code> then <code>divCLASS1</code> add CSS <code>style="margin-right:0px"</code>.</p>

<pre><code>&lt;script type="text/javascript"&gt;
&lt;!--
           if ($('#w2btoTop').element.style('display') == 'block')
    $(".livehelp").css('margin-right','0px');
}
//--&gt;
&lt;/script&gt;
</code></pre>

<p>I dont know to much of what Im doing but would love to see if I'm close to a solving this at all! </p>
