Off Topic

billy kimmel

5 Feb 2021, 4:19 pm

[Pro] Mobile Landscape View iPhone 11

Something I noticed recently with a website I’m building is that the mobile break point does not work when you turn your phone to landscape. I have it set at 768px.

Anyone else experienced this and is there a little css to fix?



7 Jul 2021, 8:20 am

There is a usefull attribute/function in CSS called orientation which has two options:

Landscape Portrait And this is how you can use it:

@media screen and (orientation:landscape) { /* Your CSS Here*/ }