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 */}
as can see in img above media queries shown in pixels. far working intended.
the query should activate when pixels fall under 873px.
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.
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
Post a Comment