I have this media query css: somehow it just won't pass validation, but if I take out the orientation queries, it will validate successfully. I simply cannot find anything wrong with it. all curly brackets are balanced,what could be wrong?
/* media query---MOB */
@media screen and (min-width:200px) and (max-width: 640px) {
/* ....CSS classes.... */
@media only screen and (orientation: landscape) {
.loginImgDiv {
margin-left: 70%;
width:100%;
height:auto;
}
} /* End of @media only screen and (orientation: landscape)*/
@media only screen and (orientation: portrait) {
.loginImgDiv {
margin-left: 45%;
width:100%;
height:auto;
}
} /* End of @media only screen and (orientation: portrait)*/
} /*End of media query---MOB */