dsfdfs Posted February 11, 2023 Share Posted February 11, 2023 Hi i wanna add code to force the mobile version in landscape only, but i tried code as @media screen and (orientation: portrait) { .main { -webkit-transform:rotate(-90deg); -moz-transform: rotate(-90deg); -ms-transform: rotate(-90deg); transform: rotate(-90deg); width: 100vh; height: 100vh; overflow: hidden; } } @media screen and (orientation: landscape) { .main { -webkit-transform:rotate(0); -moz-transform: rotate(0); -ms-transform: rotate(0); transform: rotate(0) } } it doesnt really work, wondering if anyone have the same problem and can provide me some advice. a lot thankx Link to comment
tuanphan Posted February 15, 2023 Share Posted February 15, 2023 Hi, What is your site url? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
drago_bianco_occhi_blu Posted February 26 Share Posted February 26 (edited) any solution to this? i'm trying the same but with portrait mode :)) Edited February 26 by drago_bianco_occhi_blu forgot details :)) Link to comment
tuanphan Posted February 29 Share Posted February 29 On 2/26/2024 at 7:26 PM, drago_bianco_occhi_blu said: any solution to this? i'm trying the same but with portrait mode :)) If you share link to page where you have problem, we can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment