I would like to allow my users to choose a background image or color for a node. I created a content type with two fields: 'background image' of type image, and 'background color' of type color field.
I can retrieve the values of the fields on my module but how can I pass them to my stylesheet? Should I use the
style attribute of my HTML elements?
The background color can be any color so I can't precreate css classes, or files.
Any idea on how to do this? Thank you!