@DownPW it’s possible, yes, but you may inadvertently end up targeting other elements using the same class which of course isn’t desired.
Can you provide a link in DM for me to review?
Hi @phenomlab , how are you?
I would like to separate the first post from the rest (NodeBB v1.18.6) … I see that you have a border and background customization enabled at the dark mode. How can I target the first post only?
I just could not find the correct CSS change for the first post.
I am trying to do something like this:
.posts .timeline li[data-index="0"] {
border-bottom: 1px solid #eee;
}
But, unfortunately it does not work Any help is appreciated…
@crazycells hi. Hope you’re well. Does it work if you set !important
after the class ?
@phenomlab said in [NodeBB] First post customization:
@crazycells hi. Hope you’re well. Does it work if you set
!important
after the class ?
Thanks for the suggestion. With the code above it did not work but I later found the correct codes:
li[data-index="0"] .post-footer {
border-bottom: 1px solid #eee;
}
@crazycells good to hear ! I’ll mark this resolved.
@phenomlab thanks