If there's one thing your competitor probably isn't doing, when it comes to online tools, it's accepting fractions for numeric input. For instance, if you…
Clever way to style radio input labels?
I've you haven't guessed by reading my other posts, I'm a huge fan of extremely minimal markup. It's just plain easier to update. I have…
Focus on first empty field
It's a common practice on many sites to put the focus on the first input. But, in many cases, this first input has already been…
Image shows in Firefox but not in Internet Explorer (IE)
In almost every case, this is going to be an issue related to the format of the image itself. The image may be in a…
Forcing external links to open in a new window with Javascript
This task becomes relatively easy with the help of our friend jQuery. The code below is almost too simple! $('a').each(function() { url = $(this).attr('href');…
CSS Sprites – the elegant way
I was trying to come up with a way to use image sprites for background images, without needing to specify a ton of class names.…
Table background on alternate rows
3 ways to do this: jQuery #1 $('table tr:even').addClass('even'); jQuery #2 $('table tr:even').css('background-color', '#eee'); Background Image If you are certain that all table rows will…
Clean up paragraph margins with CSS
p { margin: 0; } p + p { margin-top: 1em; } This simple CSS trick will cause only the 2nd and following paragraphs to…
Expand / Collapse with jQuery – Part II
Since my first post on the subject, I was introduced to a jQuery method called nextUntil(). I didn't realize the possibilities with this method until…
IE Google Maps Operation Aborted
If you are one of the unlucky ones to receive an Operation Aborted message in Internet Explorer after attempting to embed a Google Map via…