Posts Tagged ‘Internet Explorer’

Internet Explorer not rendering empty div correctly

Saturday, November 27th, 2010

Internet Explorer won’t render empty divs correctly.

I had a div with a height and a background image but no content; It was not rendered with the correct height it was only like one line.

A work around for this is to have some “content” inside the div (like a whitespace, a comment or why not both) then Internet Explorer renders the correct height.

<div class="some-class-with-size-and-background">
&nbsp;<!-- keep to get IE to render this div -->
</div>

Windows XP: Keep ie6 installed (don’t update ie)

Wednesday, August 11th, 2010

Keeping Internet Explorer 6 installed and don’t update to a safe (and nice) version.
I only recommend doing this on a machine that should keep Internet Explorer 6 in order to do development testing.

  • Disable Internet Explorer 7 Open up a registry editor and check if the key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Setup\7.0″ exists, otherwise create it (the key is the tree structure in regedit).
    Now enter a Key name “DoNotAllowIE70″ as a DWORD and give it the value “1″.
    This will keep Internet Explorer 8 from installing on this computer.
  • Disable Internet Explorer 8 Open up a registry editor and check if the key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Setup\8.0″ exists, otherwise create it (the key is the tree structure in regedit).
    Now enter a Key name “DoNotAllowIE80″ as a DWORD and give it the value “1″.
    This will keep Internet Explorer 8 from installing on this computer.

The values mean the following:

  • When the key value name is not defined, distribution is not blocked.
  • When the key value name is set to 0, distribution is not blocked.
  • When the key value name is set to 1, distribution is blocked.

If you need to do this on several computers then you can download Toolkits to do this from Microsoft (warning: read the instructions and verify that you ran it correctly on the first computer you run it on):