DIV is not displaying in IE8 onwards due to CSS class <p>When I create a div like below, it is displaying in IE7, but not displaying on IE8 and later versions. When I view source code, I can see this div in all IE versions, but not displaying in IE8 and plus.</p> <p>My Aspx code:</p> <pre><code>&lt;div runat="server" id="divLoginImage" class="loginImage"&gt; &lt;/div&gt; </code></pre> <p>CSS:</p> <pre><code>.loginImage { position: absolute; left: -500px; top: 10px; } </code></pre> <p>Please note that if I remove class attribute as show below, this is working fine.</p> <pre><code>&lt;div runat="server" id="divLoginImage" &gt; &lt;/div&gt; </code></pre> <p>What is wrong with my CSS?</p>