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

Question

 

I am looking to add a red highlight on only half of the caption for my image blocks. Right now for other headers I am inserting them as code blocks and using the following code: 

<center><h1> <span class="highlight">  TEXT </span>  </h1></center>
 

and have this in my CSS:

.highlight {
  background: linear-gradient(180deg,rgba(255,255,255,0) 50%, #7d1718 50%);
}

How do i apply the highlight to the image captions since i cant put them as a code block?

 

Thanks!

Share this post


Link to post

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

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


×
×
  • Create New...