php - Echo string with background color -


i creating local chat echo message in strings. want put background color on strings fb messenger. problem when type background: red; have red background. when put background:#0612e; not effect. how solve problem?

echo '<div style="border: 1px solid; background:#0612e; border-radius:4px; height: auto; padding-right:8px; text-align:right; font-size:0.9em;">' . '<div style="color:#01541d;">' . $messages->username . "</div> message: " . $messages->msg . '</div>' . "<br/>";                     } 

when see #0c0c0c, see hexadecimal representation of rgb integers. each color value made of 2 characters, totaling between 0 , 255. example, #00ff00 0 red, 255 green, , 0 blue. particular problem hex code in question is 5 characters long, , needs character.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -