Html Element Snippets


PHP snippet for displaying your latest tweet

15 June, 2014   

Example for updating a record in a database with perl and the DBU module.

03 August, 2013   

ColdFusion code for upload files to directory

14 December, 2013   

The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on.

26 September, 2011   

Pop up windows can provide a great way to gain new subscribers to your publication and even increase your sales. However, they can also be very irritating to your visitors. For this reason, you may want to use a pop up window JavaScript code that will only load the pop up window on your visitor's first visit. That way you're not continually...

Sometimes it's desirable to change a style of the first and/or last elements in a container. You can do this by manually applying classes to your HTML elements: ("last-child" still not supported in IE8).

06 May, 2014   

This PHP script allows you to parse multiple feeds from different sources into separate pages using SimplePie class. A fast and efficient way to serve fresh content to your site as to provides the most up-to-date information to the readers.

22 January, 2011   

The example here is if you had a form on a website that when submitted, needed to use that information to go to a special URL where the login information was all appeneded to the URL. You could have the form post with method GET, but that is limited to the typical ?variable=foo&variable2=bar format.

Just some funzies with CSS3 animations. If you are worried about super deep browser support, use a GIF.

26 April, 2015   

Recursively determines the size of a directory

26 December, 2011   

Allows for the creation of calendars in HTML pages

11 March, 2015   

PHP code shows how to upload images into a mysql database using

This is a PHP Class that calculates the size, number of files & folders of a specific directory.

09 February, 2013   

There are websites that will watch a page for you and notify but I didn't really like the way they worked.

02 August, 2012   

CSS Clay Bricks Menu by Dynamic Drive

16 January, 2011   

One of the most common mistakes I see beginners and intermediates fall victim to when it comes to CSS is not removing the default browser styling. This leads to inconsistencies in the appearance of your design across browsers, and ultimately leaves a lot of designers blaming the browser. It is a misplaced blame, of course. Before you do anything...

11 April, 2011   

Specifications of the TOPIC database format, a standardized structure for plain text databases that's easy to read and edit in most text editors, and easy to programmatically parse as well.

13 April, 2013   

How to resize an image to fit in a desired space.

17 September, 2014   

PHP example code for using MySQL and a contact form to allow a group of users on a site to contact each other safely.