Note that there are some explanatory texts on larger screens.

plurals
  1. POCollapsable panel css position/browser compatibility
    text
    copied!<p>i have browser position problem in my code.it displays well on firefox.but on explorer content div displays under the panel div.pls help me to fix this error.</p> <p>and this is css code</p> <pre><code>&lt;style&gt; #colleft { width:175px;float:left; overflow:hidden; background:#333;} #showPanel { position:inherit; z-index:2; left:0; float:left; padding-top:40px; display:none; width:0px; height:100px; cursor:pointer;} #showPanel span{display:block; font-size:24px; height:30px; margin-top:20px; padding:10px 0 10px 10px; width:20px; background: #333;} #colright {color:#1c1c1c; margin-left:175px} &lt;/style&gt; </code></pre> <p>and this my jquery code</p> <pre><code>&lt;script type="text/javascript"&gt; jQuery(document).ready(function(){ $("#hidePanel").click(function(){ $("#panel").animate({marginLeft:"-175px"}, 0 ); $("#colleft").animate({width:"0px", opacity:0}, 0 ); $("#showPanel").show("normal").animate({width:"0px", opacity:1}, 0); $("#colright").animate({marginLeft:"0px"}, 0); }); $("#showPanel").click(function(){ $("#colright").animate({marginLeft:"0px"}, 0); $("#panel").animate({marginLeft:"0px"}, 0 ); $("#colleft").animate({width:"175px", opacity:1}, 400 ); $("#showPanel").animate({width:"0px", opacity:0}, 600).hide("slow"); }); }); &lt;/script&gt; </code></pre> <p>html code</p> <pre><code> &lt;table width="1024" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#999999"&gt; &lt;tr&gt; &lt;td&gt;&lt;h1&gt;HEADER GOES HERE&lt;/h1&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;div id="colleft"&gt; &lt;div id="panel"&gt; &lt;h1&gt;My Panel&lt;/h1&gt; &lt;ul&gt; &lt;li&gt;item #1&lt;/li&gt; &lt;li&gt;item #2&lt;/li&gt; &lt;li&gt;item #3&lt;/li&gt; &lt;li&gt;item #4&lt;/li&gt; &lt;/ul&gt; &lt;div id="hidePanel"&gt;&lt;a href="#"&gt;&amp;laquo; Hide Panel&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="showPanel"&gt;&lt;span&gt;&amp;raquo;&lt;/span&gt;&lt;/div&gt; &lt;div id="colright"&gt; &lt;table width="100%" cellpadding="0" cellspacing="0" bgcolor="#0066CC"&gt; &lt;tr&gt; &lt;td&gt;content div&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;h4&gt;Footer goes here&lt;/&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </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