Archive | Tutorials RSS for this section

CSS Short Hand Font Tag

Up until now I have never bothered with the css font shorthand attribute, always opting to use the individual attributes instead, solely due to my lack of understanding of how it is structured. After coming across it in some web updates I have recently completed I decided to investigate and understand what it all means.
The… [read more]

Continue Reading

PHP and mySQL dates

Normally this is not an issue but a recent project I was working on meant that the normal way of using dates has caused an issue. When converting a date that is formatted dd/mm/yyyy to yyyy-mm-dd hh:mm:ss didn’t work the way I wanted it to. A way round this is to format the UK date… [read more]

Continue Reading

How to add the Facebook like button to your website

I have recently added the facebook “like” button to a website of mine, iPods Repaired, so I thought I would outline the process.
One thing that got me was how simple it was. Facebook provide the tools to build the button its just a matter of adding the code to the website. The tricky bit was… [read more]

Continue Reading

Changing web fonts using Cufon

Using Cufon to replace fonts
I have just been introduced to the world of font replacement using cufon. I had come across sIFR but found it complex and difficult to implement. To be honest I had seen mentions of cufon but only in the last few days had I used it.
As with all the jQuery… [read more]

Continue Reading

Incorrect MIME type for Javascript

I have recently noticed the following “error” appearing when using the element inspector in Safari.
Resource interpreted as other but transferred with MIME type text/javascript.
Although this doesn’t appear to cause any visual or operational defects on the page it is something I wanted to remove.
The way to fix it is to add the following to the… [read more]

Continue Reading

CSS Meesage boxes

More and more I find myself at a dead end when browsing sites with no information or instruction as to when or indeed what error has occurred. So I decided to look in to some simple message and error boxes.
I have recently finished a project at work using the Symfony PHP framework. Within the project… [read more]

Continue Reading