Vilandra
Active member
Hi
In XF1, I used the color property as the background color of a background image within a div tag like this:
And in XF2 I'm trying to do the same thing, but I'm having trouble using the color property. It will let me use a hex code, however.
This works:
This doesn't:
Can anyone help? The correct background color is actually set in the style properties, but that is not the one that is displayed.
Thanks!
In XF1, I used the color property as the background color of a background image within a div tag like this:
Code:
style="background: @dimmedTextColor url('http://path to image');"
And in XF2 I'm trying to do the same thing, but I'm having trouble using the color property. It will let me use a hex code, however.
This works:
Code:
style="height: 180px; background: #000000 url('http://path to image') no-repeat top right;"
This doesn't:
Code:
style="height: 180px; background: @xf-paletteColor5 url('http://path to image') no-repeat top right;"
Can anyone help? The correct background color is actually set in the style properties, but that is not the one that is displayed.
Thanks!