H
H
hollanditkzn2018-02-05 16:46:55
css
hollanditkzn, 2018-02-05 16:46:55

How to style input type=radio to fill in text color?

As a result, when the radio is active, the text becomes green. Can radion not point it out?
https://jsfiddle.net/hollanditkzn/e88Lh8zk/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tyzberd, 2018-02-05
@hollanditkzn

+ selects the first right neighbor. And since you want to not work, css does not know how to climb up the tree.
do a separate input, a separate label and link through for.
Or do it with js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question