Home › Forums › Support › Linear-gradient overlay on headers This topic has 3 replies, 2 voices, and was last updated 4 years, 6 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts October 10, 2019 at 1:44 am #1030962 Mårten Hi, I am trying to create a linear-gradient with opacity overlay on the header elements. I have tried different methods without success. This is what i came up with: .page-hero { background: rgb(255,255,255); background: linear-gradient(174deg, rgba(255,255,255,0) 30%, rgba(0,212,255,1) 100%); } Can you see what I’m doing wrong? October 10, 2019 at 5:39 am #1031099 DavidStaff Customer Support Hi there, try this CSS: .page-hero, .inside-page-hero { position: relative; } .page-hero:before { content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: rgba(255, 255, 255,0); background: linear-gradient(174deg, rgba(255, 255, 255, 0) 30%, rgba(0, 212, 255, 1) 100%); } October 10, 2019 at 7:56 am #1031343 Mårten Yes, awesome! Thanks for the help. October 10, 2019 at 8:00 am #1031349 DavidStaff Customer Support Glad to be of help 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