on-internet
← Community

What is the value of the css 'ex' unit?

Stack Overflow ·

(Not to be confused with Xunit, a popular .Net unit testing library.) Today in a fit of boredom I started inspecting Gmails DOM (yes, I was very bored). Everything looked pretty straightforward until I noticed an interesting specification on the widths of certain elements. The illustrious Googlites had specified a number of table cols using the rare 'ex' unit. width: 22ex; At first I was stumped ("what's an 'ex'?"), then it came back to me: I seem to remember something from years ago when first I was learning about CSS. From the CSS3 spec: [The ex unit is] equal to the used x-height of the fir

Comments

Sign in or sign up to comment and upvote.

No comments yet.