I have a site which I am trying to get to sit perfectly in all devices.
I'm using media queries to specify a different layout based on the device. I have an issue with the viewport however.
My viewport tag is:
<meta name="viewport" content="width=device-width">
It sits perfectly on the iPad but on the android tablet, it seemingly ignores the meta viewport tag.
(excuse the crappy photos. iPhone camera! Using colleagues' tablet and didn't want to get into his email to send myself screen grabs)
Here is how it loads - notice how it doesn't show the zoom level correctly. It is zoomed in too far and some of the page is off the right of the screen:

when I pinch zoom out (as far as it will allow) it appears like this - This is how I want it to appear on first load before the user zooms out:

When I rotate the device, it doesn't change the display width at all so it appears at the same zoom level but with white space on either side.
Does anyone have any ideas how I can get it to behave so I can go for the weekend and consume alcohol?
target-densitydpi=device-dpito the list as well? I doubt your tablet understands the@viewportCSS rule, but it's worth trying out: dev.opera.com/articles/view/… - cimmanon