How to change background Div active

Dear admin

How can I change the background when active for a Div ( Relative styling ) every time that DIV is active. for example with tab I can use cc-tab-active. Or with accordion you can use cc-accordion-active


Thank you !

Hello @NHViet,

The active pseudo class (which the arrow is referring to) only represents the state of an element being activated by the user (this would be a click of a mouse or a touch etc…)

In your case, what makes your div active, or when do you want it to be active?

Dear Louis
I want every time I click on the Div it will change the background color and the Anchor(NEO) to the content I need (like #)
Thank you !

1 Like