What’s a pixel? How big is an em? What about rem? How big are they? I sometimes have to explainn the differences between these, particularly when to use them. I made a little demo page to help Try this http://is.gd/pxorem There’s four bars that are direct children of the body, and they are repeated inside a div. You can set the font size of the body and the div, and set the widths of each in em, rem, px and %. It’s a bit clunky…Continue Reading “Em and pixels compared”
Save your settings Since you can purchase this on a per user basis, and it takes so much effort customise it every time, here’s how to do it once with Dropbox. http://andrew.hedges.name/blog/2012/01/19/sublime-text-2-more-sublime-with-a-drop-of-dropbox Useful shortcuts Control spacebar – code hints + more BracketHighlighting Put this into your themes file, in my case Monokai.tmTheme <!– BEGIN bracket highlight pluging color modfiications –> <dict> <key>name</key> <string>Unmatched</string> <key>scope</key> <string>brackethighlighter.unmatched</string> <key>settings</key> <dict> <key>foreground</key> <string>#FD971F</string> </dict> </dict> <dict> <key>name</key> <string>Bracket Curly</string> <key>scope</key> <string>brackethighlighter.curly</string> <key>settings</key> <dict> <key>foreground</key> <string>#cc0000</string> </dict> </dict> <dict> <key>name</key>…Continue Reading “Sublime Edit”