| Page 1 of 1 | [ 2 posts ] |
|
Hi,
In reviewing CSS Grid documentation I came across the following entry: Quote: CUSTOMIZING THE PAGE WIDTH We've made it easy to customize the page width. pixels/13 = ems for all non-IE browsers. For IE, pixels/13.3333 = ems. (I find it useful to preserve up to four decimal places (1.2345) before rounding.) I searched all over the net and I can't seem to find any other reference for this adjustment just for IE. Specifically, how was the adjustment value arrived at and what would be the implications for IE browsers if it wasn't used? Also, is this intended for all flavors of IE? And finally, should this hack be applied to all instances where em values are used in a stylesheet or only for widths? Thanks for your help. Marc |
Kristopher Ives
|
I believe Nate Koechley touches on this in a YUI Theatre video:
http://video.yahoo.com/watch/1373808/4732784 I don't think he makes it part of the presentation, but if I remember correctly it's an approximation to match the standard floating point format, rounding, and truncation that only IE messes up. It's done using the IE comment hack in CSS or using an IE conditional HTML comment. Yahoo (IIRC) conducted this research in coordination with others, but they are probably "the source" of this approximation. |
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© YUI Library - Site Credits
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group