Home Link

Hello, my name is Brett Terpstra, and it’s nice to meet you. Elegant solutions to complex problems. Curious?

Posts tagged ‘html’

Aug 12
2011

Apple has disabled the ability to copy and paste text (or even select it) in the Mac App Store. This is fine for descriptions, you can just view the web preview and get what you need (just right click the icon in the App Store app and choose Copy Link to paste into your browser). You can even get to the first few reviews that way. Marked users have left some insanely nice reviews, though…

Oct 31
2010

I just discovered Sparkup (via NetTuts+). It adds the one thing I find lacking in Zen Coding: the ability to traverse backward in a shortcut (among several other improvements).

Background: Zen Coding is a Python script that can run in various extensible editors, my favorite being TextMate. It turns strings like div#branding>h1#header+ul#nav>li*5>a into a fully marked up HTML…

Sep 04
2010

I’m on a roll with stupid scripts today, but it’s Saturday… so, whatever. This is a quick command for creating semantic <abbr> tags in TextMate. It’s short, but pretty smart: if your text is a mix of upper and lowercase letters, it will take the uppercase letters, in order, and create an acronym from them and insert an <abbr> tag, using the original input as the title…

May 16
2010

I just read a blog post by James Scariati regarding a method to target every version of IE from a single stylesheet. The idea was to add a wrapper div with a specific class using conditional comments, allowing you to target IE6 using CSS specificity rather than separate stylesheets. The commenters took it a bit further, and I decided to test out a slight permutation.

Entries (RSS) and Comments (RSS), or Subscribe by Email