I have a div which is a circle within a circle. I want the outer ( class="circle") circle to change color based on value of a number. for instance, red if greater than 20, yellow if less than 10 and green if less than 5. Is this possible?
<apex:page controller="myController"
<html>
<body>
<style type="text/css">
.circle
{
width:150px;
height:155px;
border-radius:250px;
font-size:50px;
float:left;
margin-left:1cm;
border:1px solid black;;
line-height:155px;
text-align:center;
background:#000
}
.circle2
{
width:120px;
height:120px;
border-radius:125px;
font-size:50px;
margin-left:0.4cm;
margin-top:0.4cm;
border:1px solid black;;
line-height:155px;
background:white;
}
</style>
<div id="circlecontainer" style="width:25%; margin-left:0.3cm; margin-top:0.3cm; height:155px; border:1px solid black; float:left; ">
<div class="circle">
<div class="circle2">
<p style="margin-top:-0.5cm;"> {!queueCount}</p>
</div>
</div>
</div>
</body>
</html>
</apex:page>