Home › Forums › Support › Add gradient on top of video This topic has 3 replies, 2 voices, and was last updated 5 years, 6 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts October 13, 2020 at 4:25 am #1486453 David Hello I’ve had a video background to a header by following this… https://docs.generatepress.com/article/page-hero-background-video/ And it’s working well… http://79.170.40.35/meetdevon.org/ How can I add a white gradient over the top to get a similar effect to this… https://ibb.co/9HF51bp Thanks Dave October 13, 2020 at 5:29 am #1486548 DavidStaff Customer Support Hi there, maybe some CSS like this: .page-hero:before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 20%, rgba(255,255,255,0) 50%); z-index: 1; } handy site for creating the gradient background CSS: https://cssgradient.io October 13, 2020 at 5:36 am #1486562 David Legend – thanks David! I just had to add a z-index to bring it in front of the video. Thanks for the CSS gradient link too 🙂 October 13, 2020 at 5:42 am #1486577 DavidStaff Customer Support Glad to hear that – and thx for the z-index spot – updated code above in case others need it! Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In