php - Is It Possible To Store Background Colour Hex Then Display Using That Colour? -
I have a form that allows users to design a design behind a card User Title, enter their name Do and upload a small image. It then appears back and looks like a large gaming card with a small image and top and bottom text. The background color of the card is set in CSS and it can not be changed by the user. I want users to enter their background color in hex, then show it back with the image and the text. How will this be done? Which process do I need to see?
When the user selects the color, And when you want to show the card, do something like this:
& lt; Div style = "background: & lt; php echo $ bgcolor & gt;" & gt; & Lt ;! - Here is the BGCOLOR selected by the user - & gt; & Lt; Div & gt; Business Card Text & lt; / Div & gt; & Lt; Div & gt; & Lt; Img src = "/ img / the_image.jpg" & gt; & Lt; / Div & gt; & Lt; / Div & gt;
It is
Comments
Post a Comment