Maintaining aspect ratio with CSS

Posted by on Sep 19, 2016 in Code Chat | No Comments
Maintaining aspect ratio with CSS

There are occasion when you don’t want the size of a box to flow with the page content. For example, when you’re building a page of tiled content, you may want to make sure all of the tiles are the same size, but you can’t fix the height and width because the size must be […]

Custom Styles for Select Inputs

Posted by on Mar 16, 2013 in Code Chat, JavaScript | No Comments
Custom Styles for Select Inputs

It’s long been a problem for developers that the Select (or dropdown) input doesn’t allow you many options for customising their look and feel. You shouldn’t be trying to style selects! When you search for help on this matter, you often come across people arguing that select inputs get their style from whatever browser you […]

Preventing Contact Form Spam

Posted by on Sep 9, 2012 in Code Chat | No Comments

This is a problem which comes up time and time again. Every time you add a contact form to a website, you open yourself up to spam attacks. Solving this problem involves striking the right balance between making life easy for the person filling in the form, and the person receiving the spam at the […]

Post Snippits WordPress Plugin

Posted by on Aug 22, 2012 in WordPress | No Comments
Post Snippits WordPress Plugin

This plugin for WordPress allows you to define custom snippits of code or text which you might want to appear in several posts or pages. This makes it easier if you need to update common pieces of text or code as they can all be found in one place. You may find this useful for […]

YouTube Data Class

Posted by on Mar 15, 2011 in Code Chat, PHP | No Comments
YouTube Data Class

This is a class I’ve used several times and it demonstrates some of the useful data endpoints offered by YouTube. Often I will have to ask users or a web service for YouTube videos, and these may come in the form of share URLs, embed code or video URLs. This class allows you to extract […]