I have a list of html that I want to lock on mobile viewport basically min-width: 320px
and max-width: 767px
.
I used this code here:
@media screen and (min-width: 320px) and (max-width: 767px) and (orientation: landscape) {
.piano-container {
max-width: 72vw;
transform: rotate(-90deg);
transform-origin: left top;
overflow-x: hidden;
position: absolute;
top: 100%;
left: 0;
}
}
However this did not lock up the view and doesnt look good on mobile.
Here's a js-fiddle: https://jsfiddle.net/b3mqehan/