Hi Brain,

Tagging in late as I was out and about yesterday I would first add my "go to the Webstandards Group" comment to Mark's, its the place to be for standards.

Secondly one aspect of the problem is that there is a bug in IE5 and 5.5 that sets the default size one size out from where it should be. the IE default text view size is "small" for the others it is "x-small" so you always get a size difference from the defaults if you don't manage it somehow. It is fixable by the ".html 100.01% .body 1em" style that got quoted earlier by Mark in his previous post or if you want to use hacks and get it straight here is one way of doing it:

.... start of snippet ...
html>body
{
 /* Opera's default font size is typically 10% smaller than IE or Mozilla
 * so we correct for this here, since we're using percentages
 * everywhere. And we do this because pixel-based fonts don't resize
 * under IE/Win and percentages/ems are essentially the same, and I like
 * percentages for fonts.
 */
font-size: 110%;
}

body:last-child, * html body
{
/* of course the previous selector for Opera's fix is caught by more
 * than a few other browsers, so we reset that value here.
 */
font-size: 100.1%;
}

body{ /* set the relative font size of IE5-5.5 differently to everything else, and we scale it from there */
 font: small Verdana, Geneva, Arial, Helvetica, sans-serif!important;
 font /**/: x-small Verdana, Geneva, Arial, Helvetica, sans-serif;
}

.... end of snippet .......

FYI that was a snippet from the SitePoint.com.au website, very standards compliant :-)

Another good technique can be seen at:

http://diveintoaccessibility.org/day_26_using_relative_font_sizes.html

about halfway down the page is a good explanation about the different browsers and how they handle font sizes. and the voice-family hack that is used in that example is explained here:

http://www.ericmeyeroncss.com/bonus/trick-hide.html


HTH

Kym K

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to