php - How to display hex code color in box? -


i hex color value database per user , shows in box (picture beneath).
want show color in small box instead of hex value.

code

<dd class="fl br-1 lh36" style="width:73px"> <p class="ff-m f14" style="color: #ff4600"><b>color</b></p> <p class="ff-m f13"><?= $user_info['my_color']?></p> </dd>   

screenshot

enter image description here

you should able use in-line style color header...

<dd class="fl br-1 lh36" style="width:73px"> <p class="ff-m f14" style="color: #ff4600"><b>color</b></p> <p class="ff-m f13" style="background-color:<?= $user_info['my_color']?>"></p> </dd> 

Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -