Latest Posts



"RT @bethgordon: #ASHITUDE. @KBedders @ashleyford @elerichardson"

@ashleyford 19 hours ago

"Can you think of a way the power of Twitter could be harnessed to create a beautiful design or solve a problem?"

@ashleyford 7 days ago

Web design and development tutorials, scripts and downloads designed for beginners right through to advanced developers

Website thumbnails and snapshots

I thought I’d share this great little site for displaying website thumbnails for free and unbranded! Move over Websnapr, Snapcasa’s coming through! Websnapr has somewhat dominated the market over the years with their thumbnail generation service as they boast having served over 1 billion thumbnails. However [...]


Caching Dynamic PHP pages easily

I’ve been looking for a solution to cache heavy pages and just serve a static html version for a little while now, and I’ve found a solution in output buffering. Things to think about It’s not a good idea to go away and cache your entire site, you need to think about which pages receive high traffic, and which pages make [...]


CSS Reset

It’s a good idea at the start of writing your CSS code to reset the CSS across all browsers to ensure that your page renders more or less the same. By default different web browsers use different values for margins, padding, or line heights. A CSS reset script will ensure that most browsers will render your site identically, without [...]


Mootools Ajax Example

Here’s a quick example of an ajax request with Mootools. the code below is from However I have modified it to get the data using the twitter search api. So the script contains 4 functions, the first function ‘initializeContainer’ makes a new ajax request to our file, in this case ‘twitter.php’. [...]


Mootools auto font size adjustment

After browsing the vast space that is the internet, i stumbled upon a great piece of code that, depending on the number of words in a div automatically adjusts the font size. This could be really useful if you have a list of user feedback, that you want to jazz up. So whats the code doing? Simply put. The code looks for the text within class [...]


PHP cookies Quick

Cookies are mainly used to authenticate a users session, they are small packets of data that are stored in the web browser that allow a website to match specific user information to that in the database, thus authenticating the user. So what are the values? $name – is what you want to call the cookie, we will use this to reference the [...]


Using the Twitter Search API

Twitters new search feature is great for finding interesting people and topics to follow. So i wrote a script to get search results from twitter and display them on your site. This could be integrated into an existing application or used standalone to follow a particular topic or keyword on twitter,  Check the Demo. The script uses PHP [...]


Replace a divs contents with jQuery

I had a problem a while back where i needed to put the contents of a div into another div, the reason for this was because i couldn’t access the source code of the page to modify the div contents, as it was built using a CMS, so the only option was to use .append() in jQuery to do the job. The code. You need to include the jQuery framework [...]


Using PHP and CSS to make a simple graph

Here’s an easy way to display a simple percentage graph using PHP to work out the percentages and do the maths and CSS to display the data on our page. Here’s the demo. First you need to copy the CSS below into the head of your page, you can style this to suit your needs once we have the PHP in place to render our graph. I used [...]