#px
Textmate Snippets for YUI em calculations
8 May 2007
[tags]yui, yahoo, css, snippet, textmate, ems, px[/tags]
If you use YUI grid layouts you’ll notice that ems
are the preferred units and for good reason. But ems don’t make sense to people like us who want to be super precise down to the pixel… pixels make sense.
So type in a number select it and run this ruby
script as a TextMate command (that outputs as a snippet):
You’ll have the proper tab stops to change the newly calculated ems
from width
to margin-left
or margin-right
or whatever it is you desire.
Read full post