You need to set the CSS property
class. There are some very specific steps you must also follow to ensure this property works, see this page
] for instructions.
Note that this technique does not work in Firefox. If you wish to support Firefox, you could try this jQuery plugin