Luke
Luke

Reputation: 598

BlackBerry specific stylesheet

We want to use the same page to service the desktop, iPhone, and BlackBerry, so we have to come up with a way for the different devices to load different stylesheets.

So, is there a way to specify a stylesheet to run on BlackBerry?

For example, iPhone's use the media attribute:

<link media="only screen and (max-device-width: 320px)" href="style.css" ...

Upvotes: 3

Views: 1104

Answers (1)

Pekka
Pekka

Reputation: 449385

I would parse the User Agent string using a server side language and serve the correct stylesheet. The blackberry seems to identify itself with "Blackberry/xyz". See e.g. here

Upvotes: 1

Related Questions