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
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
Post a Comment