Trying to alter background text color in HTML?

Robilbs
New Member
3 0 0

Hello,

I would like to know if anyone knows what HTML command I have to enter to change the background color of a particular word in my product text description?

Thank you 

0 Likes
Guleria
Shopify Partner
1255 263 346

Hello,

Wrap that specific word with another html tag use inline CSS.
e.g.

<span style="background: #e9e0e0;"> Your text</span>

 Thanks

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate Click here (Its my paypal)
0 Likes
Robilbs
New Member
3 0 0

Hi Guleria,

Thanks for getting back to me! I don't know anything about HTML, so here is a pitiful question:

Suppose I only want to change the background color of the text "{4/F"} to blue, do I just add the HTML code where the arrow points in my 2nd image?

Thank you

 

Screen Shot 2021-02-01 at 4.30.36 PM.pngScreen Shot 2021-02-01 at 4.32.02 PM.png

 

0 Likes
Robilbs
New Member
3 0 0

Hi again Guleria,

 

So I tried it but it doesn't work !

please view image where I show where I put your code:

your help is very appreciated!

Thanks 

Screen Shot 2021-02-01 at 4.38.09 PM.png

0 Likes