Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
christi

Change color of one letter in H1 Tag on one page

Question

In my Nueva template I have the H1 overlay color set as white. However, in one H1 I need to create a word in which the first letter "F" is the green color #79bc43 and the rest of the word "OOD" is in black #000000. Is there a way to do this with CSS?Thank you!

Edited by CSS
Initial Revision

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0

I just found the answer in a previous post. Here it is:

Add this to the custom CSS .highlight { color: #79bc43} .lowlight { color: #000000 }

Where you want the text, add a code block with the following:


<p><h1><span class="highlight">F</span><span class="lowlight">OOD</span></h1</p>




Edited by CSS
Initial Revision

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...