I think we need to write a more specific media query. Make sure that you write one multimedia request, this should not affect the other presentation (Mob, Tab, Desk), otherwise it may be a problem. I would suggest writing one basic multimedia query for the relevant device, which will cover both viewing and one orientation request, which you can use for specific orientation-oriented code for its good practice. We do not need to write a media orientation request at the same time. You can reference my example below. I apologize if my English letter is not very good. Example:
For mobile devices
@media screen and (max-width:767px) { ..This is basic media query for respective device.In to this media query CSS code cover the both view landscape and portrait view. } @media screen and (min-width:320px) and (max-width:767px) and (orientation:landscape) { ..This orientation media query. In to this orientation media query you can specify more about CSS code for landscape view. }
For tablet
@media screen and (max-width:1024px){ ..This is basic media query for respective device.In to this media query CSS code cover the both view landscape and portrait view. } @media screen and (min-width:768px) and (max-width:1024px) and (orientation:landscape){ ..This orientation media query. In to this orientation media query you can specify more about CSS code for landscape view. }
Desktop
make according to your design needs ... (:
Thanks Jitu
jitu Jul 30 '15 at 7:33 2015-07-30 07:33
source share