Category: Code

Rounded Corners Everywhere

Similar support of rgba and border-radius in modern browsers allows us to use both the old graphical and new css3 methods for rounded corners. This gives us the same look in almost all browsers.

Code

Partying like it’s 1999

Within a couple of months of writing that I prefered my own base JavaScript file to an exisiting framework, I was a convert to jQuery. Why the turnaround?

Code

Including WordPress’s comment-reply.js (the right way)

Since threaded comments were enabled in Wordpress 2.7, most themes check if the visitor is browsing either a page or a post and adds the JavaScript required for threaded comments if they are.

I prefer a slight variation

Code

Caching on the Google AJAX Libraries API

Using the Google Ajax Libraries API, there are several options for specifying the version numbers of the library you wish to use, for example, three URLs point to the latest version of jQuery.

Code

JavaScript Equal Height Columns

The desire for equal height columns in a CSS layout is nothing new; there are many solutions available, some use JavaScript, others use CSS with negative margins, and then, there’s the faux columns method using background images. All of these methods have their place as perfectly valid solutions, and, depending on the situation, may be the best solution available.

Code

Base JavaScript File

Upcoming posts on JavaScript will include references to functions in my base JavaScript file; rather than explain these functions each time, they?ll be detailed in this post for future reference.

Code

Don’t start with a reset.css

Earlier this year, Jonathan Snook wrote an article on why he doesn’t use a reset.css in which he referred to Eric Meyer’s reset, a short time later, Eric Meyer responded with an article of his own. Unlike many discussions on the web, it wasn’t a mudslinging match, but a sincere discussion of the tools available to web developers.

Code