Home › Forums › Support › Page Hero Gradient This topic has 7 replies, 2 voices, and was last updated 3 years, 2 months ago by Elvin. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts January 26, 2021 at 3:38 pm #1634914 gabrielvb1100 Hello Is there a way to set up a gradient for the “Background Overlay ” > Background Color” in a post header type “Header” in the Elements section, but still use the featured image? I am trying this code .posthero { background: rgb(1,87,233); background: linear-gradient(180deg, rgba(1,87,233,0.5) 13%, rgba(50,64,154,0.5) 100%); } but it is not taking it. Thx. January 26, 2021 at 7:06 pm #1635009 ElvinStaff Customer Support Hi there, Can you link us to the page in question? So we could check if the selectors used matches. You can use the private information text field to provide the site details. Thank you. ๐ January 26, 2021 at 7:36 pm #1635032 gabrielvb1100 Hello, Ive added the url to the site i am building January 26, 2021 at 8:00 pm #1635047 ElvinStaff Customer Support Hello, Ive added the url to the site i am building Thank you. I’ve inspected the site and found that the class assigned to the Header Element doesn’t match with the CSS selector you’re using. Within the page-hero’s classlist you have postshero which doesn’t match .posthero you use on your CSS selector. https://share.getcloudapp.com/YEuXNg1B To fix this, change the class within the Header Element to match the CSS selector you’re using. January 26, 2021 at 8:15 pm #1635054 gabrielvb1100 Hello, I did, but now the gradient seems to be overriding the featured image January 26, 2021 at 10:00 pm #1635096 ElvinStaff Customer Support Try using this CSS instead: .postshero { position: relative; } .postshero:before { background: rgb(1,87,233); background: linear-gradient(180deg, rgba(1,87,233,0.5) 13%, rgba(50,64,154,0.5) 100%); content: ""; height: 100%; width: 100%; position: absolute; top: 0; left: 0; z-index: 0; } .postshero .inside-page-hero { z-index: 1; position: relative; } January 27, 2021 at 5:58 am #1635464 gabrielvb1100 Thank you very much for your help! It works very cool January 27, 2021 at 7:53 pm #1636373 ElvinStaff Customer Support Nice one. glad it works for you. ๐ Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In