XF 2.1 Colored border in categories

FedericoS

Active member
Hello :D
I have a little styling question: How can I style nodes categories and child forums like this one?

Thanks in advance everybody!
Schermata 2022-01-28 alle 14.26.17.png
 

Brogan

XenForo moderator
Staff member
If you use the browser inspector, you will see that each section has a specific class.

You can use the class name to apply styling for that section only.

1643376686785.png
 

FedericoS

Active member
Hello :D
Thanks for the useful reply. Your method works, but the border looks weird:

My code:
CSS:
div.block.block--category.block--category3 {
    border-left: 5px solid #686868;
}

Schermata 2022-01-29 alle 02.17.15.png


Is there a way to make it inner?
 
Top