Custom Gradient

  • 10 May 2019
  • 2 replies
  • 148 views

Hi

I’d like to create a gradient from right to left. But in the unbounce page builder it’s only to set it from top to bottom. I tried the following custom css but it would not work:

html body {background: linear-gradient(to right,#ff001e 0%,#ff3282 100%);}

Any ideas what to do?

Thanks & Regards,
Jonas


2 replies

solved it myself 🙂

I set in the background properties the style to solid and then the opacity to 0 so my code got visible.

Hi,

Just to be sure it’s working everywhere, you should build your gradient here:

And then copy in Unbounce, that’s what I do and it works for any element your target ( font, button, background…)

Reply