Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS header div won't align to the left in IE, but works in Chrome and Firefox
    primarykey
    data
    text
    <p>I have the following asp.net page with a fixed header at the top with width 100%. The underlying content is centrally aligned and scrolls under the header.</p> <p>This works perfectly when save as afile an opened in Firefox and Chrome, but will not work in IE9. In IE9 the header aligns everything to the left ?</p> <p>See <a href="http://jsfiddle.net/Nsyns/" rel="nofollow">JSFiddle</a></p> <p>Full page with css</p> <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="server"&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;form id="form1" runat="server"&gt; &lt;style&gt; #header { margin: 0; padding-top: 5px; height: 25px; width: 100%; background-color: orange; /*#E1E1E0;*/ position: fixed; z-index: 1000; } .header_link { float: right; margin-top: 3px; margin-right: 15px; cursor: pointer; color: #284E98 !important; font-size: small; } .content { width: 900px; margin: 0 auto; padding-top: 10px; padding-bottom: 10px; background-color: red; /* added to show problem */ } &lt;/style&gt; &lt;div id="header"&gt; &lt;a href="./About.aspx" class="header_link" onclick="return hs.htmlExpand(this, { objectType: 'ajax' })"&gt;About&lt;/a&gt; &lt;a href="./Default.aspx" class="header_link"&gt;Home&lt;/a&gt; &lt;/div&gt; &lt;div class="content"&gt; &lt;p&gt;foo&lt;/p&gt; &lt;p&gt;foo&lt;/p&gt; &lt;p&gt;foo&lt;/p&gt; &lt;p&gt;foo&lt;/p&gt; &lt;p&gt;foo&lt;/p&gt; &lt;p&gt;foo&lt;/p&gt; &lt;p&gt;foo&lt;/p&gt; &lt;p&gt;foo&lt;/p&gt; &lt;p&gt;foo&lt;/p&gt; &lt;p&gt;foo&lt;/p&gt; &lt;p&gt;foo&lt;/p&gt; &lt;p&gt;foo&lt;/p&gt; &lt;p&gt;foo&lt;/p&gt; &lt;p&gt;foo&lt;/p&gt; &lt;p&gt;foo&lt;/p&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    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