---
name: "Apache::AxKit::StyleChooser::UserAgent"
section: "3pm"
platform: "linux"
package: "axkit"
version: "1.6.2-3"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/Apache::AxKit::StyleChooser::UserAgent"
---

# Apache::AxKit::StyleChooser::UserAgent(3pm)

Choose stylesheets based on the user agent.

## NAME

Apache::AxKit::StyleChooser::UserAgent - Choose stylesheets based on the user agent.

## SYNOPSIS

```
    In your .conf or .htaccess file(s):
```

```
    AxAddPlugin Apache::AxKit::StyleChooser::UserAgent
```

```
    PerlSetVar AxUAStyleMap "lynx     => Lynx,\
                             explorer => MSIE,\
                             opera    => Opera,\
                             netscape => Mozilla"
```

## DESCRIPTION

This module sets the internal preferred style based on the user agent string presented by the connecting client. To use it, simply add this module as an AxKit plugin that  will be run before main AxKit processing is done.

```
  AxAddPlugin Apache::AxKit::StyleChooser::UserAgent
```

See the **AxStyleName** AxKit configuration directive for more information on how to setup named styles.

## AUTHOR

Kip Hampton, khampton@totalcinema.com

## SEE ALSO

AxKit.
