0
I’m having the following problem:
I have a page that has several slides in HTML even. All these slides have their size set by vh
instead of pixel
.
The problem is that when I access with mobile, the mobile being horizontal is fine, but when I put vertically it does not display the slide that I was, it makes the recalculation of the vh
, due to change of orientation of the mobile, and goes to the next slide.
First I thought about disabling the mobile screen transition via javascript, but it seems to be Gambi.
It has as I see if the site is being accessed by mobile and run a function in javascript so that it replaces everything you have vh
for pixel
?
I don’t know if that’s the best option, if anyone has a suggestion I’m very grateful.
You mentioned about having "100px", but in the example the body width was 500px (and exceeding the limit of media querie, which in the case would be 480px). Give me a fix!
– Cobra
@Thiagobarros Worth the touch. Corrected.
– Leon Freire