inherit
jinroufuyumi@gmail.com
198156
0
May 11, 2017 16:52:04 GMT -8
Jinrou Jinjin
feeding on stray codes. . .
20
August 2013
jinrou
|
Post by Jinrou Jinjin on May 10, 2017 5:18:21 GMT -8
I want to add a different colored background to every even numbered thread on the list.
I know how to do that by nth-of-type selector but I don't know which class I should put it in.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on May 10, 2017 18:13:49 GMT -8
You would simply specify a color if you are constructing a CSS rule:
CSS Code:
.item.thread[id]:nth-child(even){background-color: #efcc00;}
|
|
inherit
jinroufuyumi@gmail.com
198156
0
May 11, 2017 16:52:04 GMT -8
Jinrou Jinjin
feeding on stray codes. . .
20
August 2013
jinrou
|
Post by Jinrou Jinjin on May 10, 2017 18:27:30 GMT -8
How about for the boards in the home page? And thread list?
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on May 11, 2017 4:30:56 GMT -8
That was for a thread list, for boards it would be: .item.board[id]:nth-child(even){background-color:purple;}
|
|