IE not rendering div contents
Posted
by The.Anti.9
on Stack Overflow
See other posts from Stack Overflow
or by The.Anti.9
Published on 2010-03-29T03:38:40Z
Indexed on
2010/03/29
3:43 UTC
Read the original article
Hit count: 303
internet-explorer
|html5
I've written an app using HTML 5 and I wan't to show an error box instead of the page when someone visits from IE. When it detects navigator.appName
as Microsoft Internet Explorer
it hides everything and shows the error div that started out hidden. The div is as follows:
<div id='ieerror' style='display:none;width:500px;height:500px;border:3px solid #ff0000;position:absolute;top:50%;left:50%;margin-top:-250px;margin-left:-250px;'>
<center>
<h1 style='font-size: 30px;'>Internet Explorer is not supported by Aud!</h1><br /><br />
<p>Internet Explorer does not support HTML 5 and therefore this application cannot run.<br />
Please upgrade your browser. We suggest <a href='http://www.google.com/chrome'>Google Chrome</a>!</p>
</center>
</div>
The problem is that when I visit the page in IE, the div pops up with the border, but it has no contents. Nothing is inside of it. I went to view->source
and looked at it, and the code is still there, but none of it is rendered. How do I fix this?
© Stack Overflow or respective owner