Pajama Sloth

because sloths can wear them too

April 10, 2012 at 4:35pm

Unicode Non-Breaking Hyphen

Want to ensure that your words don’t break because of hyphens?

Try this: ‑

EDIT:

It turns out that some older browsers might have a problem with this unicode. If that’s the case you can always wrap your hyphenated word with <span style=”white-space:nowrap”>e-mail</span>

March 15, 2012 at 3:51pm

StarterKit →

StarterKit is simply a collection of useful files that can be used as a starting point for creating a website. Only the essentials have been left in and the code has been optimized to ensure quick loading.

December 9, 2011 at 11:00am

Preventing iOS Scaling on Orientation Change

Just recently removed a thorn from my side. The thorn? My web application kept scaling oddly whenever I went from one orientation to another. The tweezers (or whatever people use to remove side thorns)? Simply set the max and min scale on the viewport meta information in your HTML. Like so:

<meta name=”viewport” content=”width=device-width, initial-scale=1, user-scalable=no, maximum-scale = 1, minimum-scale = 1“>

This prevents iOS Safari from scaling your content up or down in anyway on orientation change. Also note that I set the intial-scale to 1 as well. This may not be necessary but it ensures that you’re starting from the normal zoom level.

September 19, 2011 at 11:24am

Initializr Custom HTML Framework →

April 27, 2011 at 4:42pm

HTML Signatures in Apple Mail

Ziguana Signature

I remember that finding information regarding signatures in Apple Mail to be sort of difficult when I first decided to make one, so I decided to include a simple tutorial here.

1. Create an HTML document for your signature. It’s best to use tables to structure your signature because not all email systems are going to be able to handle floats.

2. Open up your signature in Safari. Then go to ‘Save As’ and save the page as webarchive to your desktop.

3. Next, jump into Mail and create a new signature. Don’t do anything with that signature, just create it and then Quit Mail.

4. Go into your user folder (the home folder), navigate to Libary > Mail > Signatures and locate the most recently created document (it will be that signature you just created in Mail).

5. Move that signature file to your desktop, copy the file name, delete that file, and rename the webarchive file you saved earlier by pasting the name of the signature file you just deleted.

6. Take this newly named file and add it back to the Signatures folder you were just in.

7. Open Mail and check out your signatures.  Wallah!