M
M
MultiGramen2020-11-29 14:33:54
Media queries
MultiGramen, 2020-11-29 14:33:54

How to force the browser to open the mobile version in landscape orientation?

I created this media query for mobile devices:
@media only screen and ( max-width : 768px ) {}

Everything is fine, but as soon as I turn the phone to landscape orientation, the desktop version opens.

Tried to create something like:

@media only screen and (max-width : 768px) and (orientation:portrait), (max-width : 768px) and (orientation:landscape)  {}

but I just started studying media queries, so I don’t know everything yet, and the project needs to be handed in tomorrow. Tell me how to solve this problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question