.htaccess, mod_rewrite and PHP include()

HTML

When creating a website with only a handful of pages, a full-blown CMS (such as Drupal, Joomla! or Wordpress) can be more work to set up and maintain than is necessary. In this case, simple, static HTML makes more sense to use. Here are two tips to keep in mind while making static HTML websites.

Multiple Image Backgrounds with CSS 3

HTML

I have been reading about HTML 5 and CSS 3 for a while now and thought I would try some experiments with some of the new CSS 3 properties. This little snippet will put an inner-shadow on the body element by using 5 different image backgrounds to define the shadow.

You can view a demo here. Note, not supported in all browsers as of May 2010, but should work in the latest versions of Chrome, Safari and Firefox.