moxxbrands Posted September 16, 2021 Share Posted September 16, 2021 Hi there, I found this on a different forum about this subject. This code works but am needing to find code so that it swaps out the video and uses 4:5 video rather than the 16:9.Currently this with no coding: Then when I insert the code below this it changes to - see below: (Mobile view) section[data-section-id="insert here"] iframe { width: auto !important; left: 0 !important; height: auto !important; } section[data-section-id=""insert here""] { min-height: 25vh !important; height: 30vh !important; } } ----------------------So I am needing code to using two different video formats: 1: Desktop 16x9 video 2. Mobile 4x5 video Does anyone have the right code for this? Link to comment
tuanphan Posted September 17, 2021 Share Posted September 17, 2021 Hi, use this new code @media screen and (max-width:767px) { section[data-section-id="insert here"] iframe { width: auto !important; left: 0 !important; height: auto !important; } section[data-section-id="insert here"] { min-height: 25vh !important; height: 30vh !important; } } 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
Archived
This topic is now archived and is closed to further replies.