CSS Compressor

CSS CompressorSo I've been noticing quite a few articles lately about speeding up your website, and compressing static files and all that. It got me thinking, and I started to mess around with some ideas I had.

Now I know there are a lot of CSS compressors on the web today, but most of them involve copying and pasting your code into a textarea, and it giving you a compressed version that you have to upload to your server and reference in your HTML document. But what if you have 4 or 5 different style sheets that you are going to be editing quite a bit, and don't want to bother having to merge your code and compress it all the time.


PHP Menu Builder

PHP Menu BuilderPHP Menu Builder is a new class I just finished that allows you to easily build out a navigational menu. It outputs as an unordered list, and allows for as many levels as you want.

You can add any HTML attributes to the main list, and sub-levels and active items are given classes according to their place in the list.

View Demo & Documentation


Free High-Res T-Shirt Templates

High-Res T-Shirt Templates

Here are some t-shirt templates that I created and have been using for display mock-ups and products on websites. They are all 300 dpi and about 2000 pixels square.


2 Free Fonts

I made these fonts probably about a year ago, and they were the first time I ever experimented with creating a font. They've been available since then on dafont.com (as well as many others), but I just want to share them on my blog now.

Lazy

Lazy Font

Sketchathon

Sketchathon Font


Creating an Ajax Form

Ajax Contact FormWhen creating forms that need to be validated against a user's input, you can either validate on the client-side (Javascript), or the server-side (PHP in this case).
But if you want to use Javascript, then someone with Javascript turned off could easily submit the form and bypass all validation.

That's where AJAX comes in. You do all the validation on the server-side, but return the results back to the user with Javascript and no page refreshes. It's really the best of both worlds. Plus it degrades good enough if someone has Javascript disabled.