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?
Loading

Sunny SharmaRank #223 · 11.1K reputationPosted Oct 11, 2013, 1:52 AM EDT
deepa ashwi108 reputationPosted Oct 11, 2013, 2:57 AM EDT
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?
here i have attached the CSS file
Sunny SharmaRank #223 · 11.1K reputationPosted Oct 11, 2013, 3:04 AM EDT
I don't see any attachment here, please re-attach and post it.
deepa ashwi108 reputationPosted Oct 11, 2013, 3:12 AM EDT
Sunny SharmaRank #223 · 11.1K reputationPosted Oct 11, 2013, 4:18 AM EDT
got the attachment but it contains only the CSS file only. It looks good. please share the respective HTML page also so that I can check it.
Sunny SharmaRank #223 · 11.1K reputationPosted Oct 11, 2013, 4:22 AM EDT
I don;t see any handheld keyword included for mobile devices. Modify your media queries css to read like:
@media handheld { /* rules for handheld devices */ } // add "handheld" keyword so that it can check if It's a desktop browser or a handheld.
Hope it helps :)
deepa ashwi108 reputationPosted Oct 11, 2013, 4:29 AM EDT
Thanks for helping me here i have attached the html page .
deepa ashwi108 reputationPosted Oct 11, 2013, 4:31 AM EDT