* You are viewing Posts Tagged ‘HTML’

Creating images for HTML emails with GIMP

If you’re designing HTML emails (for instance, newsletters or other mails that are not created with a Mail User Agent), you will know that you have to use HTML 3.2 because of Outlook 2007 and its strange Word 2007 rendering. (By the way, I’d even extend Microsoft’s argument that Word is better for security reasons because it doesn’t understand scripts and suggest using Word 2007 as the default browser for every computer.)

In Word/Outlook 2007 Background images are only accepted in this format:… Continue Reading

Rails: Using HTML typography automatically

There’s a way you can use special characters for HTML typography in Rails without much work: Just let your views about raw text and then overwrite the html_escape (h) method:

module ApplicationHelper

def h(s)
super(s). \
gsub(‘(c)’ , ‘&copy’). \
gsub(‘(r)’ , ‘®’). \
gsub(‘(tm)’ , ‘™’). \
gsub(’ 1/2 ‘, ’ ½ ‘). \
gsub(’ 1/4 ‘, ’ ¼ ‘). \
gsub(’ … Continue Reading

blog.dev001.net is Digg proof thanks to caching by WP Super Cache