views:

323

answers:

4

Is there a way to force IE or FF into a handheld mode for testing "@media handheld" stylesheets?

Or, do I have to publish the pages and test with my Blackberry?

I'd prefer to test this without pushing the application to the live server as the application is already in use.

Any ideas for me?

A: 

Some help on this question: http://stackoverflow.com/questions/259330/what-do-you-use-to-test-the-handheld-css-on-your-website

Totty
Thanks! Now, why couldn't I find that page when I searched?
BoltBait
Opera? I was really hoping to find an IE or FF solution though...
BoltBait
The magic of Google search, "site:stackoverflow.com firefox handheld"
Totty
Opera is one of the top browsers in mobile market, so it even makes more sense than testing in Firefox.
porneL
Sure, but it is something that I'd have to install. I have too many browsers already!
BoltBait
too many browsers, but not opera?
nickf
A: 

I've found Blackberry browser to be so utterly broken, that testing in Firefox or even IE doesn't make sense. Netscape 4 seems like closest approximation.

If you want achieve decent experience on BB, then you have to get a BB simulator. It's available for free from RIM website (you need to click through a few forms).

If you just want to test under a mobile browser, than try Opera Mini simlator on-line or desktop Opera in Small Screen view (get version 7.6 or 8.0 from archives if you want exactly the same engine as used today on smartphones).

Or add html {max-width:240px} to your styles and for testing serve them with media=screen rather than handheld.

porneL
A: 

There's a simple way with media queries:

@media handheld, screen and (max-width: 500px) { /* your css */ }

This will make browsers that implement media queries use your handheld css when you resize the window to less than 500px.

ilya n.
+4  A: 

Web Developer Toolbar for FF lets you to test webpages media=handheld

Suraj
It took me a while to find, so for anyone else who is bad at finding things quickly, this feature is at: CSS > Display CSS by Media Type > Handheld
MatrixFrog