The Internet Explorer 7 beta 2 has arrived and is available to all.
First, it has to be said, IE7 a good piece of software and Microsoft should be congratulated on their good work. That’s not to say anyone should use it instead of Firefox, but credit where it’s due. (Although no idea whether the security has really improved.)
So is the end of hacking in sight? There’s a useful article entitled ‘stop hacking now or be stopped‘.
IE6 may still need hacks to cater to its own unique box model and the many bugs it contains. A good tutorial on the box model is available at Brainjar.com.
So, the battle, fought hard by geek heroes like Jeff, Holly, John and Eric, has been won, and the occupation begins now. And this time it really isn’t all about the oil.
If you’ve been using conditional comments to make adjustments for the bad models IE6 uses they will still work, your hacks are kept separate from your neat and tidy style sheets, and IE7 won’t know about them. If you’ve been using the parse hack (* html) this will also still work fine, as IE7 will ignore these as well. This method also allows you to keep the hack as you can place it next to the proper styling - so if you make any adjustments you won’t forget to update the hack.
Looking at the frames-without-frames as an example for a layout that only works in quirks mode in IE6, and uses conditional comments to set min and max with or height, it appears this won’t be a problem either. IE7 copes just like any other good browser.
As a side note, it turns out there is already a hack for IE7, produced by Brothercake, called the Triple X hack. Once again, to have to use this is bad bad wrongness.
IE7 will highlight any badly written code. The best way to avoid problems is by following proper standards. The following sites have top quality information:
- Designing with web standards - Jeffery Zeldman
- Eric Meyer on CSS - Eric Meyer
- Positioning is Everything - Holly and John
The last link has more information available online so you don’t have to use a book. They have a great article on how IE7 will affect different hacks.
Looking at http://www.researchkitchen.de/… in IE7, it seems IE7 still collapses the margins. It looks similar to Opera rather than Mozilla in Example 3 and in Example 4 where the body is given padding, a div overlaps the containing block. So what does this all mean for IE7? Er.. good question.
written by mat












