views:

1286

answers:

4

I've been adding css support for handheld to my website but haven't been able to find a good tool for testing.

I tried using the webdeveloper plugin for Firefox but it doesn't work for me. Maybe that is because all my css is in the html and not a seperate css file.

Are there any other testing tools available aside from going out and buying a handheld device?

+2  A: 

If you have Visual Studio, there should be device emulators which let you test mobile IE, or they can be found standalone on Microsoft's site. Here are some for WM 5. There is an OpenWave simulator available to test that browser. Blackberry simulators are available as well, to test the Blackberry browser. You can (kind of) test iPhone support with Safari, although you can't verify the viewport meta-tag. There's an Opera Mini simulator here.

Also, get your CSS out of your HTML :)

Chris Marasti-Georg
My CSS is embeded since it is customized based on the users preferences ( they can customize the default font size / colors etc ). I guess I should split out the part that is static. It's on my to-do list.
KPexEA
You can also serve it dynamically from your server. Have a server-side process (php script, whatever) handle the request for customUser.css and write it based on their preferences. This way it can still be cached by the browser.
Chris Marasti-Georg
A: 

For testing the iPhone, you can get the iPhone SDK here But you need OS X / Apple computer for it to run the official way.

Not official/hacks:

  • There are ways to get OS X running on standart PC hardware like here.
  • Or get the SDK running in Linux / vmware described here.

Happy Hacking!

Huibert Gill

HuibertGill
+4  A: 

With a bit of hunting I found what I was looking for, thanks for the leads guys.

Opera will display the handheld css if you select "Small Screen" from the View menu.

KPexEA
You could also just test screen-based css in IE6 on windows, but I wouldn't recommend it...
Chris Marasti-Georg
Why on earth would someone downvote this when I FOUND what I was looking for, call me confused.
KPexEA
I don't see the "Small Screen" option in the latest (10.53) version of Opera. Perhaps it has been removed.
John D. Cook
@John The option has moved. Press Shift+F11 or look under Page > Developer Tools > Layout > Mobile View.
mercator
@mercator: Thanks, but this still doesn't work for me. I see View -> Developer Tools, but no Layout under that. And Shift+F11 doesn't do anything.
John D. Cook
@John: hmmm, maybe you need the [Debug menu](http://dragonfly.opera.com/app/debugmenu/DebugMenu.ini) in that case. Also see here: http://www.opera.com/dragonfly/
mercator
+1  A: 

I'm not sure if it's a good idea to resurrect the old question, but I hope somebody finds it :)

There's a simple way to test handheld css with with media queries:

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

After that you can test on browsers that implement media queries by resizing the window to less than 500px.

ilya n.