Webmaster Tutorials

CodeIgnite File Uploads - Allow all

CodeIgniter File Uploads – Allow all

Posted on April 10th, 2011

Unfortunately at the time of writing there is no way within the CodeIgniter framework to allow your end users to upload any file type via the CodeIgniter upload libraries. Instead you must manually specify each and every file type you’d like to accept – quite a time consuming and frustrating process if you’ve got a …

Minimize your CSS for smaller page sizes

Posted on April 1st, 2011

Just quickly, go and take a look at your stylesheets. What you’ll probably see is a fair amount of CSS code, but an awful lot of whitespace. All of the new lines, tabs and spaces you’ve been using to make your CSS easier to read have made the size of your stylesheet go up. This …

CSS and HTML 5

Posted on March 25th, 2011

HTML 5 is supported by the majority of the big browsers and more and more sites are beginning to adopt it. Even though it’s far from being the dominant format it is gradually picking up speed as more developers try to keep up with developments. One of the main differences between HTML 5 and other …

CSS Reset

Posted on March 23rd, 2011

When you start defining your CSS properties you’ll probably notice that most elements already have default CSS properties applied to them. You can see an example of this by creating a minimal HTML document with no CSS applied. One of the things you should notice is that your page content isn’t quite touching the border …

Inline CSS or external CSS file?

Posted on March 19th, 2011

When writing CSS for your web pages you have the option of where to put it. You can either place the CSS directly into your HTML markup alongside the HTML elements, group all the CSS together at the top of the document or store it as an external CSS file for inclusion into your pages. …

Center an image using CSS

Center an image (absolutely!)

Posted on March 15th, 2011

Making an image (or some other block element for that matter) align in the center of its parent element can sometimes be quite a pain. One of the solutions to this problem is to use negative margins combined with absolute positioning to put the image exactly in the center. Absolute centered image markup This is …

CSS Shorthand

CSS background shorthand property

Posted on March 14th, 2011

If you’re trying to reduce the overall size of your CSS one of the things you can do is to use the shorthand properties. CSS shorthand properties provide a method of combining common properties of a particular styled element into a single statement. Let’s take a look at the CSS shorthand for using backgrounds. CSS …

Search engine friendly website headers

Posted on March 14th, 2011

Search engine optimization is a big thing when it comes to building websites. If you have any strong hopes for building a good flow of traffic to your site search engines are without a doubt one of the best options available to you, unless of course you have an awful lot of money to spend. …

Force trailing slash with .htaccess

Force trailing slash with .htaccess

Posted on June 3rd, 2010

Forcing a trailing slash onto your URLs using a .htaccess file is a simple and useful way of ensuring that your web sites pages are accessible only via a single URL meaning there’s less chance that Google or any other search engine will see them as being duplicate pages. The problem is that having two …

WordPress 404 redirect

WordPress 404 redirect

Posted on May 30th, 2010

By simply adding a file called 404.php into your WordPress theme directly you can quite easily create and customize the page shown when a visitors tries to access something which isn’t there. But what if you wanted to automatically redirect this user to your front page (or some other page on your site) instead of …

Page 1 of 212
...