html5 - Visual Studio media queries not working as intended -


i have been working on project make site responsive. there 1 big problem. @media tag not working should.

@media screen , (max-width: 873px){/* lots of css in here */} 

and other media-query

@media screen , (min-width: 874px){/* lots of css in here */} 

media-query view google-chrome

as can see in img above media queries shown in pixels. far working intended.

the query should activate when pixels fall under 873px.

not working query

as can see in image above pixels under 873 style rules not adjusted. when type in console:

$(document).width()  ( pixels on 873px)( window instead of document same) 

we 1141.

when pixels put on 656 style rules above 873 still active. when drop 1 pixel 655 style rules under 873 active.

pixels under 655

when type in console $(document).width() 925.

i not sure causes problem because other sites, not build in visual studio, don't have problem( , pixels match $(document).width() ).

does know problem , how fix it?


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -