Why does not switch tabs?

Try to make tabs in css.


Can't understand why the tabs do not switch, please tell me what the problem is.
April 4th 20 at 00:28
3 answers
April 4th 20 at 00:30
[name] on the input
from diva no :checked .tab input:checked
April 4th 20 at 00:32
You have a problem in the sibling. You set the visibility condition for the next input block, but there is a label.
Solution: wrap the input by label and then adjust
April 4th 20 at 00:34
@dexter75 Yes, thank you! - reinhold32 commented on April 4th 20 at 00:37

Find more questions by tags CSSHTML