[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 106
  • Last Modified:

Syntax for HTML5

I need to change the color of the case-sensitive word Status to blue, and the case-sensitive word Open to red.
0
frugalmule
Asked:
frugalmule
1 Solution
 
käµfm³d 👽Commented:
Under what circumstances? Always? Then you need a style. Sometimes, if an event happens? Then you need Javascript. Please elaborate.
0
 
frugalmuleAuthor Commented:
Always would be the circumstance.  Under any condition.
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
if you're text is structured like this,

Status: <span>Blue</span>
<br/><br/>
Status: <span>Red</span>

you could add the following classes to your css:

.statusBlue   {  color: blue;  }
.statusRed    {  color: red;    }

then change your markup to:

Status: <span class="statusBlue">Blue</span>
<br/><br/>
Status: <span class="statusRed">Red</span>
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now