Imagine this small code
$(document).ready(function() {
$("#loadingDiv").load("sub/__window_div.php");
})
It runs okay in Chrome, Firefox, Opera, Safari and IE8 (yes!). But if I add some CSS in the __window_div.php file, it stops running in IE8, but runs fine on other browsers.
I just add in the file those lines:
<style type="text/css">
</style>
Is it not possible to have CSS in the include file? Why only IE8 doesn’t load the file?
No, it is not valid to have
<style></style>elements in any part of your HTML other than inside the<head></head>tags.Other browsers have managed to handle it, but as I said, the
styleelement must be present only insideheadtags.