I am trying to add css in thymeleaf but am getting internal server error.
<span th:style="'content:('\ +${{user.getUserIcon()}}+')'"></span>
How to add css class in thymeleaf?for example I have this class in css I have to display it using thymeleaf
.content .users{
content:"\42";
color:#fff;
}
Got Solution
<span th:class="${{user.getUserIcon()}}"></span>