Clinton Montague

Developer, learner of things, functional programming enthusiast, hacker, and all round inquisitor.

Better, faster and more robust rollovers with CSS sprites

December 9, 2008

Learn how to create faster, standards compliant, javascript-less and accessible buttons using only CSS. Even the most hard-core of javascript programmers will admit that actually, they might have done this by mistake. And I promise to show you how, and if you’re lucky explain why.

I’ll even tell you what a sprite is.

Create cool slidy drawers with jQuery

November 16, 2008

In this tutorial, I will show you how to make cool sliding content using jQuery. And the best part is that if javascript is disabled, the content will still display very nicely.

Using ems to Specify px Text Sizes in CSS

We all know that internet explorer is the runt of the browsers. In yet another rebellion, it simply refuses to scale elements which have been specified using pixels. In this tutorial I will show you how to think in pixels but work with ems.

Seperating HTML, CSS and Javascript – unobtrusive javascript

So with all of this web 2.0 hype you want to add in loads of cool CSS behaviours, javascript wotsits and AJAX wangdoodles to your website. But then you’re told that you have to keep the (X)HTML clean. ‘What the?!!’ you may ask. Read on to find out how the voodoo is done.

Number to words function in PHP

You know those ‘I have nothing to do this-afternoon so I want to waste some time making something utterly pointless’ moments? Well I get them too. Fortunately however, it turns out that my moment of inspiration led to a very useful script to turn ‘123’ into ‘One hundred and twenty three’. Bargain!

Automatically creating 'short names' / 'slugs' for URIs

Please note!! I have shamelessly stolen this article from my old and (even if I do say so myself) rather boring blog. So please ignore the terrible writing style! I’ll rewrite this article in the future, but until then, I present you with version 1.0 This tutorial follows on from my mod_rewrite semi-tutorial which allowed […]

Intelligent objects

Please note!! I have shamelessly stolen this article from my old and (even if I do say so myself) rather boring blog. So please ignore the terrible writing style! I’ll rewrite this article in the future, but until then, I present you with version 1.0 Anyone who has worked with the PHP/MySQL duo will no-doubt […]

Singletons in PHP

Design patterns can be boring things. Especially when the language you’re using keeps changing syntax. I had a bit of trouble implementing a Singleton in PHP, and so I have written this tutorial to explain the errors of my ways.

mod_rewrite semi tutorial

November 1, 2008

Please note!! I have shamelessly stolen this article from my old and (even if I do say so myself) rather boring blog. So please ignore the terrible writing style! I’ll rewrite this article in the future, but until then, I present you with version 1.0 There are a lot of tutorials out there regarding apache’s […]