Consider the following:
$a=25;
$b=75;
I would like to show a percentage bar based on value of $a
and $b
. I would like to express the percentage bar as a div.
I guess I would need to do the following:
<div id='container'>
<div id='a'></div>
<div id='b'></div>
</div>
#container{
width: 100%
}
#a{
Width: $a //here I need to get the value of $a
}
Any Idea how I can implement this?
I need to get this in an external stylesheet
.
What I hope to achieve, keep in mind that value of $a and $b varies