Currently, I'm focusing on creating a responsive design for a web page. The issue I am encountering involves loading data via ajax to render forms. Strangely, only Internet Explorer seems to think that the width is less than 768px after rendering (thus triggering my responsive template). This problem specifically arises on IE9 and above. I'm puzzled as to why IE seems to be ignoring the @media query. Is there possibly another underlying issue causing this malfunction?
@media only screen and (max-width:767px){
#topmenu-responsive{
width: 80%;
}
}
I have attempted the following solutions:
<meta http-equiv="X-UA-Compatible" content="IE=edge,9,10,chrome=1"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
Unfortunately, these attempts have yielded no improvements so far.