Help? HTML/CSS problem

Started by Merlin, August 04, 2021, 08:20:41 AM

Merlin

I wonder if someone has any suggestions for a problem I have.

I'm trying to make the first word of text within quote marks a different color.

"This is the first line of my text"

To do this I've enclosed the first word (This) in a span <span></span> and added: span { color: #990000; } to the CSS.

What I'm getting is a flickering of the enclosed >< marks when it loads.

Any suggestions to stop the flickering?

BuckleyWebServices

Hi,

I'm not sure what is causing the flickering based on this information, but let's try approaching this a different way. I'll use a <p> tag for this example.

Trying using this HTML code:
<p>"<span style="color: #990000;>This</span> is the first line of my text"</p>

Let me know if this works or if you have any questions!
Jonathan Buckley
buckleywebservices.com