Basically I narrowed the page width to 400px, reduced content width, and used display:none to remove large banners. Most pages look fine on my iPod however not sure about other devices.
Just be aware that mobiles still have to download that stuff, even if it’s not visible. Ideally, place any decorative content in the CSS and serve a different style sheet to mobiles so they don’t download unnecessary stuff.
Most pages look fine on my iPod however not sure about other devices.
Mobile testing is a tough gig, which is why it’s safest to serve really simple styles to all devices, and then serve pretty @media styles to those that can handle them.
Any idea what phones support CSS Media Queries?
I’m hoping adding CSS is enough to satisfy my clients.
Having a lot of trouble finding good online emulators…tried the one you mentioned.
It’s not the phone who supports the media queries, it’s the browser.
And many phones run Opera (Mobile or Mini) or some version of Webkit (iWhatevers, Android, Symbian on Nokia).
But if you try the Yiibu way (basic sheet everyone gets is mobile-friendly) then you don’t have to worry about anyone supporting media queries really except IE (and you end up sending the “desktop” stylesheet to all IE’s under 9, sucks for Windows Mobile users but whatever)… unless this site is expecting some older graphical browsers.
My strategy with mobile devices is to detect them in the http header via the server and then either switch the theme if I’m using a CMS or feed them a different stylesheet if it’s a simple page or two that needs to be accessed.