:after and :before CSS pseudo elements hack for Internet Explorer 7

with any pure CSS hack it’s not possible. Use IE8.js http://code.google.com/p/ie7-js/ It has support for this. http://ie7-js.googlecode.com/svn/test/index.html test page also there after – http://ie7-js.googlecode.com/svn/test/after.html before – http://ie7-js.googlecode.com/svn/test/before.html Edit after 1st comment You can just keep this js for IE6 and 7. other browser will not read it. <!–[if lt IE 8]> <script src=”http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js”></script> <![endif]–> And … Read more

How do I force Internet Explorer to render in Standards Mode and NOT in Quirks?

This is the way to be absolutely certain : <!doctype html> <!– html5 –> <html lang=”en”> <!– lang=”xx” is allowed, but NO xmlns=”http://www.w3.org/1999/xhtml”, lang:xml=””, and so on –> <head> <meta http-equiv=”x-ua-compatible” content=”IE=Edge”/> <!– as the **very** first line just after head–> .. </head> Reason : Whenever IE meets anything that conflicts, it turns back to … Read more

How can I programmatically disable IE compatibility mode?

If you want the “old” rendering, and no button to show up on the toolbar so that users can switch modes you can use this: <head> <!– Mimic Internet Explorer 7 –> <meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7″ > <title>My Web Page</title> </head> other options (old and new) include:IE=5, IE=7, IE=8, or IE=edge (edge equals highest mode available)

tech