Browser Detection

From CSS Discuss

Jump to: navigation, search

Several methods can be used to serve stylesheets based on what browser the visitor is using. Some work better than others.


Note that the HTML/CSS "media type" allows the user agent (not necessarily a browser) to select a specific stylesheet. For instance, when using code like <link rel="stylesheet" href="tiny.css" type="text/css" media="handheld"/> the "tiny.css" stylesheet will be invoked only by a "handheld"-eligible user agent (some cell phones, for example). See Media Stylesheets .

Personal tools