YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub
  [ 2 posts ]

Marc Gagnon

  • Username: crazycanuck
  • Joined: Tue Nov 24, 2009 7:22 pm
  • Posts: 1
  • Offline
  • Profile

em adjustment value for IE (CSS Grids)

Post Posted: Tue Nov 24, 2009 7:40 pm
+0-
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

  • Username: krisives
  • Joined: Tue Aug 11, 2009 5:00 am
  • Posts: 51
  • Location: Salem, OR
  • Twitter: kristopherives
  • GitHub: krisives
  • Gists: krisives
  • IRC: krisives
  • Offline
  • Profile
Tags:

Re: em adjustment value for IE (CSS Grids)

Post Posted: Wed Nov 25, 2009 7:12 pm
+0-
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.
  [ 2 posts ]
Display posts from previous:  Sort by  
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