title: How to change colour in CSS, by giving condition?
body: <p>I'm having a body. In that there is one field "status". If status=OK background should be white color. If status=error, background should get red. Please tell me how to give the condition in CSS file.</p>
  
  <p><img src="https://i.stack.imgur.com/hyma2.png" alt="Body code in CSS"></p>
  
  <p><img src="https://i.stack.imgur.com/SPG4d.png" alt="This is the GUI"></p>