Click here to Skip to main content
15,886,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,
I am using media queries in CSS , to view webpages in mobile but whats happening for me is when i reduce width to view in mobile view ,its getting changed in desktop screen also(i.e.,the width getting reduced in desktop screen also but width should not get reduced for desktop screen rite it should happen only in mobile view..where is the problem...can anyone help me?
Posted
Updated 10-Oct-13 20:58pm
v2
Comments
vbmike 12-Oct-13 10:13am    
If you are just using your desktop or laptop to change the size of the browser window then yes whataever @media stipulation you have written will change the page view. If you are trying to change the page for a mobile device you will have to use something like "navigator.Useragent" type code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900