The ‘Stylesheets’ Category

CSS Classes

This is a collection of CSS classes that I have found myself using repeatedly over the years, some more than others. A lot of them mimic basic CSS properties, but I’ve found that using them as class names provide better hooks for scripting.

more…

Reset CSS

This reset CSS normalizes elements across most modern browsers. It is a good starting point, along with valid (X)HTML, for eliminating those pesky cross-browser style issues. This file has been evolving over the past several years as I modified and optimized it during my work as a web developer.

more…

Better IE PNG fix

The PNG behavior fix for Internet Explorer 5.5-6 has been around for some time. There are other pure JavaScript solutions to enable alpha-transparent PNGs in our favorite web browser, but I prefer the behavior approach, because I don’t have to clutter my JS code with browser specific hacks. This solution is only for <img> elements with a PNG as the source (alpha-transparent background images are another story, where the use of JavaScript is better suited)

more…