I am using this: css progress bar
Its great, and we have virtually customised every aspect. The issue is, I really really hate the gradients, but they are in rgba values.
Does anyone know, how to change the gradients to hex values, so that we can finish the styling.
The (css we have ) is:
background-color: #74d04c;
/* Webkit background stripes and gradient */
background: -webkit-gradient(linear, 0 0, 44 44, color-stop(0, rgba(255, 255, 255, 0.17)), color-stop(0.25, rgba(255, 255, 255, 0.17)), color-stop(0.26, rgba(255, 255, 255, 0)), color-stop(0.5, rgba(255, 255, 255, 0)), color-stop(0.51, rgba(255, 255, 255, 0.17)), color-stop(0.75, rgba(255, 255, 255, 0.17)), color-stop(0.76, rgba(255, 255, 255, 0)), color-stop(1, rgba(255, 255, 255, 0))), -webkit-gradient(linear, left bottom, left top, color-stop(0, rgba(255, 255, 255, 0)), color-stop(1, rgba(255, 255, 255, 0.35))), #74d04c;
background: -moz-linear-gradient(rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%), #74d04c;
-moz-box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.4), inset 0px -1px 1px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.4), inset 0px -1px 1px rgba(0, 0, 0, 0.2);
-o-box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.4), inset 0px -1px 1px rgba(0, 0, 0, 0.2);
box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.4), inset 0px -1px 1px rgba(0, 0, 0, 0.2);
/* Give it a higher contrast outline */
border: 1px solid #4c8932;
I just dont get rgb ( so would like to see how we can convert to #hex values )
Even a link would be fine.
Cheers
The usual hex representation is simply the red, green and blue values converted to hexadecimal (base 16), one byte apiece. Your
255,255,255would beffffffand 0,0,0 would be000000. Though those don’t show it, the notation uses two digits apiece, arranged as rrggbb, so (for example) rgb = 1,2,3 would convert to 010203.Edit: If you’re comfortable with command line tools (and have access to a C or C++ compiler), you might find something like this a somewhat easier way to do the conversion:
Just be warned: this doesn’t attempt much in the way of error checking, so if (for example) you give it a value greater than 255, it won’t detect or warn you about the problem, just produce a result that won’t work correctly.