'Thymeleaf add value in style

I have a div block that has styles. I need to add another style with a substitution value. I imagined it like this:

th:styleappend="background-position:-${value}%"

But it doesn't work. Is there a possibility to do this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source