Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Can I change the background color of HTML meter?

Tags:

html

css

Is there a way to change the background color of HTML meter?

I know ,by default its background color is green.

Is this possible to change its background color from green to any other color?

I tried with the style attribute but it still remains green.

 <meter style="background-color:red;"min="0" low="40" high="95" max="100" value="65">
 </meter>
like image 651
Amit Verma Avatar asked Jun 17 '15 04:06

Amit Verma


1 Answers

meter::-webkit-meter-optimum-value {
    background: red; /* Green */
}
<meter min="0" low="40" high="95" max="100" value="65" col>
</meter>
like image 189
Farhad Manafi Avatar answered Oct 27 '22 12:10

Farhad Manafi