Note that there are some explanatory texts on larger screens.

plurals
  1. POIE not recognizing padding and border
    primarykey
    data
    text
    <p>On the right side of the page there are some tabs (colorways, photography and companions) which I made with jQuery. However, I noticed that IE (what a surprise) is not recognizing padding and border on the <code>h2</code> and the table under companions.</p> <p>Normal browsers render it fine, just IE makes the problem.</p> <p>any ideas?</p> <pre><code>&lt;div class="tabbedPanels"&gt; &lt;ul class="tabs"&gt; &lt;li class="firstlitab"&gt;&lt;a href="#panel1" tabindex="1"&gt;COLORWAYS&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#panel3" tabindex="3"&gt;PHOTOGRAPHY&lt;/a&gt;&lt;/li&gt; &lt;li class="lastlitab"&gt;&lt;a href="#panel2" tabindex="2"&gt;COMPANIONS&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;div class="panelContainer"&gt; &lt;div id="panel1" class="panel"&gt; &lt;p&gt;content here&lt;/p&gt; &lt;/div&gt; &lt;!-- end panel1 --&gt; &lt;div id="panel2" class="panel"&gt; &lt;table class="w_table"&gt; &lt;h2&gt;Wallpaper&lt;/h2&gt; &lt;tr&gt; &lt;td&gt;&lt;a href="#"&gt;&lt;img src="images/products/companions/wallpaper1.jpg" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="#"&gt;&lt;img src="images/products/companions/wallpaper2.jpg" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="#"&gt;&lt;img src="images/products/companions/wallpaper3.jpg" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;table class="pf_table"&gt; &lt;h2 class="pfh2"&gt;Printed Fabrics&lt;/h2&gt; &lt;tr&gt; &lt;td&gt;&lt;a href="#"&gt;&lt;img src="images/products/companions/printedfabrics1.jpg" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="#"&gt;&lt;img src="images/products/companions/printedfabrics2.jpg" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="#"&gt;&lt;img src="images/products/companions/printedfabrics3.jpg" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;table class="wf_table"&gt; &lt;h2 class="wfh2"&gt;Woven Fabrics&lt;/h2&gt; &lt;tr&gt; &lt;td&gt;&lt;a href="#"&gt;&lt;img src="images/products/companions/wovenfabrics1.jpg" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="#"&gt;&lt;img src="images/products/companions/wovenfabrics2.jpg" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="#"&gt;&lt;img src="images/products/companions/wovenfabrics3.jpg" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;!-- end panel2 --&gt; &lt;div id="panel3" class="panel"&gt; &lt;p&gt;content here&lt;/p&gt; &lt;/div&gt; &lt;!-- end panel3 --&gt; &lt;/div&gt; &lt;!-- end panelContainer --&gt; &lt;/div&gt; &lt;!-- end tabbedPanels --&gt; &lt;script&gt; $(document).ready(function() { $('.tabs a').click(function() { // save $(this) in a variable for efficiency var $this = $(this); // hide panels $('.panel').hide(); $('.tabs a.active').removeClass('active'); // add active state to new tab $this.addClass('active').blur(); // retrieve href from link (is id of panel to display) var panel = $this.attr('href'); // show panel $(panel).fadeIn(250); // don't follow link down page return(false); }); // end click // open first tab $('.tabs li:eq(2) a').click(); }); // end ready &lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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