Thanks Kym. I'll look at this over the weekend.
Brian
-----Original Message-----
From: Kym Kovan [mailto:[EMAIL PROTECTED]
Sent: Friday, 17 June 2005 10:13 AM
To: CFAussie Mailing List
Subject: [cfaussie] Re: OT CSS
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/
-----------------------------------------------------------------------------------
This e-mail is sent by Suncorp-Metway Limited ABN 66 010 831 722 or one of its
related entities "Suncorp".
Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or on 13 11
55 or at suncorp.com.au.
The content of this e-mail is the view of the sender or stated author and does
not necessarily reflect the view of Suncorp. The content, including
attachments, is a confidential communication between Suncorp and the intended
recipient. If you are not the intended recipient, any use, interference with,
disclosure or copying of this e-mail, including attachments, is unauthorised
and expressly prohibited. If you have received this e-mail in error please
contact the sender immediately and delete the e-mail and any attachments from
your system.
If this e-mail constitutes a commercial message of a type that you no longer
wish to receive please reply to this e-mail by typing Unsubscribe in the
subject line.
---
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/