D
D
De Slow2015-06-18 18:42:56
CMS
De Slow, 2015-06-18 18:42:56

How to display a specific background for each news on DLE?

The essence of the subject.
I'm still making a pattern. I want to draw a certain background for each verse, for example:
Verse1=img1
Verse...=img...
Verse25=img25
How to do it, can anyone tell me?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay, 2015-06-18
@nickolyashka

Make up news list ul > li.
And then set your own styles for each
ul li:nth-child(1) {
background: red;
}
ul li:nth-child(2){
background: green;
}
ul li:nth-child(3){
background: blue;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question