Skip to content Skip to sidebar Skip to footer

Html Rgba Color Opacity?

When we use RGBA in Html we use sth like this.
Some Content
How many decimals can you go in the dd(opacity). Is it

Solution 1:

The specification says it is a <number> which is defined as:

zero or more digits followed by a dot (.) followed by one or more digits

So there is no limit specified in the CSS spec.

I'd be surprised if any human eye could distinguish beyond two decimal places though.

Solution 2:

The opacity property has a value set to two decimals.

All current browsers recognize this, the context is a little different for IE8 and below.

Post a Comment for "Html Rgba Color Opacity?"