How do you add a gradient to text in Nicepage?

Auguste
257 Posts
Auguste posted this 20 June 2021
Ask a Question

How do you add a gradient to text in Nicepage? 😊 Thanks
https://fossheim.io/writing/posts/css-text-gradient/

How do you add a gradient to text in Nicepage? 😊 Thanks https://fossheim.io/writing/posts/css-text-gradient/

Last edited 20 June 2021 by Auguste

Vote to pay developers attention to this features or issue.
11 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 21 June 2021

Hello Christophe,
Thank you for being our customer!

You can try and add the code from the side panel in Edit CSS:

Screenshot-3.png

...................................................
Sincerely,
Lilioneta
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello Christophe, Thank you for being our customer! You can try and add the code from the side panel in Edit CSS: !Screenshot-3.png! ................................................... Sincerely, Lilioneta Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
Auguste
257 Posts
Auguste posted this 21 June 2021

Thanks I will try :-)

Thanks I will try :-)
Support Team
Support Team posted this 21 June 2021

Hi Christophe,

You are welcome, please let us know if you need further assistance.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Christophe, You are welcome, please let us know if you need further assistance. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
Auguste
257 Posts
Auguste posted this 23 June 2021

This does not work :-(

I added this code in "HTML" header
h1 class="gradient-text

Then this in "CSS"
.gradient-text {
/* Fallback: set a background color. */
background-color: red ;

/* Create gradient. */
background-image: linear-gradient(45deg, #f3ec78, #af4261);

/* Set the size and repeat properties of the background. */
background-size: 100% ;
background-repeat: repeat;

/* Use the text as a mask for the background. /
/
This will make the gradient appear as a text color rather than a bg element. */
-webkit-background-clip : text ;
-webkit-text-fill-color : transparent ;
-moz-background-clip: text ;
-moz-text-fill-color: transparent ;
}

This does not work :-( I added this code in "HTML" header h1 class="gradient-text Then this in "CSS" .gradient-text { /* Fallback: set a background color. */ background-color: red ; /* Create gradient. */ background-image: linear-gradient(45deg, #f3ec78, #af4261); /* Set the size and repeat properties of the background. */ background-size: 100% ; background-repeat: repeat; /* Use the text as a mask for the background. */ /* This will make the gradient appear as a text color rather than a bg element. */ -webkit-background-clip : text ; -webkit-text-fill-color : transparent ; -moz-background-clip: text ; -moz-text-fill-color: transparent ; }
Support Team
Support Team posted this 24 June 2021

Hi,

The provided code works ok on my side. Please check the page in the browser preview. Nicepage does not execute all custom code in the editor.

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, The provided code works ok on my side. Please check the page in the browser preview. Nicepage does not execute all custom code in the editor. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
Auguste
257 Posts
Auguste posted this 25 June 2021

Hello, thank you for your message.

I have just checked it does not work.
https://fossheim.io/writing/posts/css-text-gradient/

Can you look at my test Nicepage project? Thanks a lot!

Hello, thank you for your message. I have just checked it does not work. https://fossheim.io/writing/posts/css-text-gradient/ Can you look at my test Nicepage project? Thanks a lot!
Support Team
Support Team posted this 25 June 2021

Hello Christophe,

To see your CSS code in the preview, please select the text element.
On the panel on the right in CSS class paste the name of the class added.
After that click enter and you will see your custom CSS applied in Nicepage Preview.

enter image description here

enter image description here

...................................................
Sincerely,
Negat Veri
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello Christophe, To see your CSS code in the preview, please select the text element. On the panel on the right in CSS class paste the name of the class added. After that click enter and you will see your custom CSS applied in Nicepage Preview. ![enter image description here][1] ![enter image description here][2] ................................................... Sincerely, Negat Veri Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp [1]: https://i.postimg.cc/xdNMb7zz/image.png [2]: https://i.postimg.cc/d3shnSLn/image.png
Auguste
257 Posts
Auguste posted this 28 June 2021

Thanks a lot it works :-)

Thanks a lot it works :-)
Support Team
Support Team posted this 28 June 2021

Christophe,

Glad to hear it! Please contact us any time you need help.
And thanks for using Nicepage.
...................................................
Sincerely,
Negat Veri
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Christophe, Glad to hear it! Please contact us any time you need help. And thanks for using Nicepage. ................................................... Sincerely, Negat Veri Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
awd
1 Posts
awd posted this 08 May 2024

can I create a NEW text CSS that is not h1 with the gradient

can I create a NEW text CSS that is not h1 with the gradient
Support Team
Support Team posted this 09 May 2024

Hello Joanne Smith,

Yes, you can create a gradient with h2 h5, or P also.
This is a code, you can copy and paste, you do not need a change anything, but you can change the colors, #f3ec78 which is written like this, you can try to search colors on the web, try searching "hex value colors"

.gradient-text {
  background-color: red;
  background-image: linear-gradient(45deg, #f3ec78, #af4261);
  background-size: 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; 
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
}

Please let us know the result.
...................................................
Sincerely,
George.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello Joanne Smith, Yes, you can create a gradient with h2 h5, or P also. This is a code, you can copy and paste, you do not need a change anything, but you can change the colors, #f3ec78 which is written like this, you can try to search colors on the web, try searching "hex value colors" .gradient-text { background-color: red; background-image: linear-gradient(45deg, #f3ec78, #af4261); background-size: 100%; background-repeat: repeat; -webkit-background-clip: text; -webkit-text-fill-color: transparent; -moz-background-clip: text; -moz-text-fill-color: transparent; } Please let us know the result. ................................................... Sincerely, George. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments