There are two primary ways in which you might utilize JavaScript in conjunction with CSS: swapping browser-specific style sheets and creating dynamic styles triggered by the user or other actions.
A couple of problems, however, sometimes occur when using a browser sniffer to redirect users to the correct style sheet based on their browser: