What I did at work today

Apr 22 2009

Useful Textmate tricks for CSS

  1. Cmd-shift-C opens up the Apple Color Picker. If you already had a hex color code highlighted, it shows that color.
  2. For box model math, I like to do this:

    div {
    	width: 88px; /* 100 - 5 - 1 - 5 - 1 */
    	padding: 0 5px;
    	border: 1px solid #000;
    }
    

    But sometime my brain doesn’t want to handle that math. But if you highlight an math expression and hit Ctrl-shift-C, you can have Textmate evaluate it for you.

    Page 1 of 1