Jim R Posted May 16, 2019 Share Posted May 16, 2019 I'm wanting the background of a DIV to be influenced by data from a data table. Something like this... background-color: " $color "; Quote Link to comment https://forums.phpfreaks.com/topic/308716-variables-in-css/ Share on other sites More sharing options...
requinix Posted May 16, 2019 Share Posted May 16, 2019 Use inline CSS, be that written into the HTML or applied through Javascript. It's okay. 1 Quote Link to comment https://forums.phpfreaks.com/topic/308716-variables-in-css/#findComment-1566797 Share on other sites More sharing options...
Jim R Posted May 16, 2019 Author Share Posted May 16, 2019 Simple. Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/308716-variables-in-css/#findComment-1566798 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.