Here’s a little CSS tip: Don’t apply positioning rules (including alignment, margins, floats, etc) to a base element, for there will surely come a day when you say, “But I don’t want <label> elements to float left on this page!” Instead, use a rule based on a class or id. You may find that every single instance of said element now has the same class attribute, but it will make life much easier in the long run.

The Bad

The Good:

* This post was originally published on January 8, 2007 at