I had trouble wrapping my head around Django ORM’s handling of Images.
Read full post
I had trouble wrapping my head around Django ORM’s handling of Images.
Read full post
[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.
I do a lot of YUI grid layouts and I love the nestable grids:
<div class="yui-g$1">
<div class="yui-u first">
$2
</div>
<div class="yui-u">
$3
</div>
</div>
There’s a tab stop after yui-g
in case you want to use one of the variants (yui-gb
, yui-gc
, etc).
I’m working on a site that uses two equal width columns… a lot… so this comes in quite handy. So long tables.
Read full post