Trying to add parameter for CSS colour
-
I’m using this code:`
<div style="background-color:#d6ab29;color:%%text-color%%;padding:10px;margin:0 0 10px 0; text-align:center;">%%text%%</div>When I go to insert the shortcode with the tinyMCE option, it shows the parameter for me to fill it in. If I put in “black” or #000 or #000000 it doesn’t actually make the text black.
When I look at the outputted code to the browser, this is what shows up:
<div style="background-color:#d6ab29;color:;padding:10px;margin:0 0 10px 0; text-align:center;">This is my text!!!</div>Any thoughts?
The topic ‘Trying to add parameter for CSS colour’ is closed to new replies.