html - Hex color code multiple # -
while editing old coldfusion code found <td>
has bgcolor
property. value of ##89969e
. copied code html file , found out color different in coldfusion.
now, noticed double #, removed 1 , color same. why color change when adding/removing #?
as basic premise, additional hashes interpreted missing/erroneous value , replaced zero, ##89969e
becomes #0089969e
. note hex codes can long 8 digits following hash (if argb), the last 2 refer transparency
missing digits treated 0[...]. incorrect digit interpreted 0. example values #f0f0f0, f0f0f0, f0f0f, #fxfxfx , fxfxfx same.
when color strings longer 8 characters or shorter 4 characters used, things start strange.
however there lot of nuances - can find out more here, , entertaining results creates, have a little read here
Comments
Post a Comment