This code (which is a working snippet from the actual pages) works as expected in Safari and Firefox, as well as on one virtual host in IE7 and 8, but when it moves to another host, the “fixed” position is ignored on IE:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Test Page</title> <style type="text/css"> .alrtfrnt { background-color:gray;} .alrtfrnt { position:fixed;top:33%;left:33%;height:150px;width:300px;z-index:9;} </style> </head> <body> <div class='alrtfrnt'></div> </body> </html>
If "fixed" is changed to "absolute", then it works fine, but this is not a requirement.
This is probably not a caching problem, because it started with "real" pages and continued through some completely new pages. I also changed the color on the block to make sure it was picked up, and install IE to check for updates every time I visit the page.
I don’t understand why exactly the same code should be displayed in a different way depending on the server, so any hints regarding the following that I can check or change will be appreciated.
source share