Home › Forums › Support › How to Add gradient effect in Highlighted text This topic has 11 replies, 2 voices, and was last updated 2 years, 10 months ago by David. Viewing 12 posts - 1 through 12 (of 12 total) Author Posts October 8, 2022 at 1:14 am #2366834 sandeep kumar Hi I’m trying to add gradient effect in Highlighted text is that possible? Thanks October 8, 2022 at 6:43 am #2367021 DavidStaff Customer Support Hi there, add this CSS: .gradient-text { background: -webkit-linear-gradient(#eee, #333); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } Select the Text, Heading or Headline block that you want to apply it to, add in Advanced > Additional CSS Class(es) add: gradient-text October 8, 2022 at 7:30 am #2367058 sandeep kumar Hi David This highlights the whole text. I just need a gradient effect in the highlighted area. eg shared privately October 9, 2022 at 3:50 am #2367571 DavidStaff Customer Support If thats using the Highlight option in the editor then that yellow text should become mark element. Try changing the CSS to this: .gradient-text mark { background: -webkit-linear-gradient(#eee, #333); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } October 9, 2022 at 4:28 am #2367596 sandeep kumar Awesome David Working Perfectly. One more doubt What I have to do if I want to add a gradient effect to the container border? PS: I’m using generateblocks Ex https://ibb.co/SsQFFJs October 9, 2022 at 5:57 am #2367695 DavidStaff Customer Support Do you mean that wavy line ? October 9, 2022 at 6:29 am #2367732 sandeep kumar Yes It includes “shapes” and “container border” also eg of container border https://ibb.co/3FQwY9G October 10, 2022 at 3:37 am #2368536 DavidStaff Customer Support If its the border to a container then see here: https://unused-css.com/tools/border-gradient-generator It will generate the necessary CSS for creating gradient borders November 2, 2022 at 3:50 am #2397982 sandeep kumar Hi David Everything working fine. I have one more query Is that possible to change icons color to gradient? eg https://ibb.co/mv8mBS7 from yellow to this color background: rgb(254,177,0); background: linear-gradient(90deg, rgba(254,177,0,1) 0%, rgba(255,37,37,1) 100%); November 2, 2022 at 4:05 am #2398004 DavidStaff Customer Support Not using CSS. The Gradient would have to be included in the original SVG Icon and it would probably need to be loaded as an image. November 2, 2022 at 4:13 am #2398016 sandeep kumar NO david its not working November 2, 2022 at 7:12 am #2398275 DavidStaff Customer Support What is not working ? Author Posts Viewing 12 posts - 1 through 12 (of 12 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In