Site logo

Archived topic

Cannot reduce huge white gap on mobile under menu

10 replies · Started by ClearCity on September 19, 2019

Viewing posts 1–11 of 11

Hello and thank you for continuously improving GP. I am stuck and have spent hours trying to reduce the huge white gap between the menu and the GP Premium video header on mobile phones and ipads. I've researched here and put in css recommended on other threads, messed with the paddings and margins, but cannot get it. Any assistance would be appreciated.

Hi there,

try unchecking the Full Screen option in the Header Element.

That worked to get rid of the white gap, but as soon as I unchecked Full Screen the video header did not show up at all on mobile devices. I'm not sure how to reduce some of the white on the top and bottom (I had the content set to vertical top, but changed it to center). Any recommendations?

How do you get a video header to play (or even show up) on Safari?

(EDITED) My mistake - it does show on Android with the full screen unchecked and looks very good, but not on an iphone. Is there some special coding to get a video to show up/autoplay on an iphone?

try adding the playsinline parameter to the <video> tag and make sure the device isn't in low power mode

I tried several code variations, and this finally worked for me for the video to show on both Android and iphone properly.

In the GP Premium header element (Page Hero tab)

<video autoplay loop muted playsinline class="background-video">
<source src="your-video-link.mp4" type="video/mp4">
</video>

Container: Full Width
Inner Container: Full Width
Full Screen - unchecked
Padding for mobile 90 px on top (for this design)

(Site Header tab)
Merge with Content
Various offsets for desktop/mobile for this design

I appreciate your patience and the recommendations of adding padding, unchecking full screen and adding playsinline. Thank you Leo and David - You guys rock!

For anyone wondering about getting GP Premium - it is worth every penny and then some!

Quick question - I've used this code on another site - now the video shows on iphone, but that video is not responsive. Is there a CSS code so the video shows at the proper size on mobile devices?

Background video and background images aren't responsive by nature unfortunately.

We set a background image instead of background video for mobile if you'd like?

Let me know :)

This archived topic is closed to new replies.