Answer the question
In order to leave comments, you need to log in
How to make a style change for a repeating div?
Good day! Faced a problem: News site (DLE) For each news, a color is prescribed in the add. field. Default is white (style.css). How can I make the color specified in the additional field change only for this news? That is, it turns out that the CSS properties are the same (there are 3 of them), and the values \u200b\u200bfor each news should be different, on one page ....
It is difficult to explain in words I will try to show.
Answer the question
In order to leave comments, you need to log in
In the short news template, add in the right place:
[xfgiven_имяДопПоля]
style="background: [xfvalue_имяДопПоля];
[/xfgiven_имяДопПоля]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question