Topic: Suggestion for IE7 - CSS hack to allow text size change
Hi,
I have a suggestion that you might consider for the upcoming PunBB releases. Currently the following hack is used for IE5.x and 6 on Windows:
/* IEWin Font Size only - to allow IEWin to zoom. Do not remove comments \*/
* HTML .pun {FONT-SIZE: 68.75%}
/* End IE Win Font Size */
However, as you might know, IE7 doesn't support the "* html" hack any more. So at the moment the text size cannot be controlled in IE7 (yes, it allows page zooming but it's not exactly the same and I wouldn't say it's that usable).
So my suggestion is to use the following IE7 specific hack in addition:
/* IE7Win Font Size only - to allow IE7Win to zoom text. */
*:first-child+html .pun {FONT-SIZE: 68.75%}
I have personally tested the hack with all Windows/Mac/Linux browsers I have access to (which includes pretty much all well-known browsers) and I can confirm that this hack is specific to IE7 and to no other browser. Furthermore, even if some future yet-unreleased browser possibly applies this rule, it most probably won't do any harm to that browser as normally 68.75% font-size corresponds to 11px.
For more info about the hack, please visit - http://nanobox.chipx86.com/blog/2006/04 … or-ie7.php
This hack has been working in all IE7 versions since Beta 2 (when the improved rendering engine was first introduced) and today I verified that it is still working in the final IE7.0. I am pretty much convinced they will not "drop support" for it in future versions and even if they do so, they promised to make the text size resizable, no matter which units are used in the future IE releases after 7.0.
Anyway, I just wanted to make this suggestion.