Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy do different browsers render the same HTML differently?
    text
    copied!<p>This is an html page :</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt; Frame Set &lt;/title&gt; &lt;script type="text/javascript" src="jquery-1.4.2.min.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" href="frame.css" type="text/css" media="screen" /&gt; &lt;script language="JavaScript" type="text/javascript"&gt; $(document).ready(function() { var winSize = $(window).width(); var margin = (winSize-1000)/2;; $('#main').css({'margin-left':margin,'margin-right':margin}); } ) $(function() { $(".frame").each(function() { var width = ($(this).find('.h').width()), height = $(this).find('.l').height(), pad = $(this).find('.h').position().left, actWidth = width + 10, nHeight = height - (height * 2), rLeftMargin = actWidth - 1, bWidth = actWidth; $(this).find('.r').css({'margin-top':nHeight, 'margin-left':rLeftMargin, 'height':height}); $(this).find('.h').css({'height':25}); $(this).find('.b').css({'width':bWidth, 'margin-top':0}); }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="main" align="center" style="width:1000px; height:100%; text-align:left;"&gt; &lt;div id="inner1" style="width:100%; height:20%; float:top; margin-bottom: 20px;"&gt; &lt;div id="inner11"&gt; &lt;div class="frame"&gt; &lt;div class="h" style="width:100%"&gt;Header&lt;/div&gt; &lt;div class="l" style="height:93%"&gt;&lt;/div&gt; &lt;div class="r"&gt;&lt;/div&gt; &lt;div class="b"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="inner2" style="width:100%; height:60%;"&gt; &lt;div id="inner21" style="width:69%; float:left; margin-left: 1px; margin-right: 1px;"&gt; &lt;div class="frame"&gt; &lt;div class="h" style="width:100%"&gt;Left Frame&lt;/div&gt; &lt;div class="l" style="height:93%"&gt;&lt;/div&gt; &lt;div class="r"&gt;&lt;/div&gt; &lt;div class="b"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="inner22" style="width:29%; float:right; margin-left: 1px; margin-right: 1px;"&gt; &lt;div class="frame"&gt; &lt;div class="h" style="width:100%"&gt;Right Frame&lt;/div&gt; &lt;div class="l" style="height:93%"&gt;&lt;/div&gt; &lt;div class="r"&gt;&lt;/div&gt; &lt;div class="b"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="inner3" style="width:100%; height:20%; float:bottom; margin: 2px 2px 2px 2px;"&gt; &lt;div id="inner23"&gt; &lt;div class="frame"&gt; &lt;div class="h" style="width:100%"&gt;Footer&lt;/div&gt; &lt;div class="l" style="height:93%"&gt;&lt;/div&gt; &lt;div class="r"&gt;&lt;/div&gt; &lt;div class="b"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>This is Mozilla output : </p> <p><img src="https://i.stack.imgur.com/3ETIQ.jpg" alt="alt text"></p> <p>This is IE8 output :</p> <p><img src="https://i.stack.imgur.com/PiAao.jpg" alt="alt text"></p> <p>What is the problem ?</p>
 

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