S
S
Sergey K2021-09-09 13:51:59
css
Sergey K, 2021-09-09 13:51:59

How to make title color white on activation?

There are tabs with target text (First tab, Second tab, Third tab, etc.). How to make the title color (First tab, Second tab, Third tab, etc.) white when activating one or another tab? hover, link, visited are not suitable.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tyoma_koder, 2021-09-09
@tyoma_koder

add a class on click using js
or
add a hidden checkbox to the block with the tab heading before the text and write something like input:checked+a{color: white} in css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question