MattInTheBox Posted July 30, 2021 Share Posted July 30, 2021 Site URL: https://scarlet-grape-g5ln.squarespace.com I need help with centering my home page's first video that autoplays on mobile without affecting the desktop version. On mobile, it only shows the bottom right corner of the video but in the top left corner of the block. My current code that I am using for this is below (from @codeandtonic @8640-codeandtonic) /* Section background image 16:9 video */ //show on mobile section.page-section[data-section-id="61019a7c2ef1a604d30e6b10"] { display: block; } // show on desktop html.no-touch section.page-section[data-section-id="61019a7c2ef1a604d30e6b10"] { display: block !important;} section.page-section[data-section-id="61019a7c2ef1a604d30e6b10"] { //16:9 spacer padding-bottom: 56.25%; min-height: 0 !important; .section-background .sqs-video-background iframe { //make it the size of parent no matter what automatic JS it would like to do border-width: 0; position: absolute !important; top: 5.5vh !important; left: 0 !important; bottom: 0 !important; right: 0 !important; height: 10vh; width: 100% !important; height: 100% !important; } // blocks would be here but we won't have any .content-wrapper{ display:none !important; } } Link to comment
tuanphan Posted August 1, 2021 Share Posted August 1, 2021 Do you still need help? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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