|MySQL Conference and Expo April 14-17, 2008, Santa Clara, CA|
Recipe 11.5: Importing Browser- or Operating System-Specific Style Sheets
NN 4, IE 4
You want to load separate external style sheet files for users on different kinds of computers.
You can combine the browser- or operating system-specific external style
sheets with other fixed
To simplify the validation of your script under strict XHTML, you can move the CSS file loading statements to an external .js file.
Employing multiple style sheets for different browsers or operating systems imposes the same maintenance headaches as multiple page implementations for different browsers. Any change you make to the design needs to be adapted for each version and tested thoroughly on the designated platforms. And yet, some applications of CSS styles may create an imperative for separate style sheet rules for Internet Explorer for Windows versions that are not fully CSS-compatible (see Recipe 11.13).
Return to the Web Development DevCenter.