I am working on a website to work on handhelds. I am using media queries. The browsers are recognizing the media query and are resizing the layout accordingly. But when i try to test the pagen on chrome emulator it is not recognizing the media queries and is showing the desktop version of the page. I have included the meta tag for viewport in my head tag
and my media query css is :-
@media only screen and (min-width: 481px) {
/*-----CONTENT -----*/
#mobileContentWrapper {
display: none;
}
#desktopContentWrapper {
display: block;
}
}
@media only screen and (max-width: 480px) {
/*-----CONTENT -----*/
#mobileContentWrapper {
display: block;
}
#desktopContentWrapper {
display: none;
}
}
Can anyone please guide me how can i resolve this issue. Really apprecaite any help.