.choice:checked + label { color: #166534; font-weight: 700; }The selected option label becomes green and bold.
LESSON 86 OF 100
Emphasise the immediately following label when the option is checked.
:checked selects checked controls, while the + combinator selects the immediately following sibling. The HTML must keep the label after the input for the relationship to exist.
.choice:checked + label { color: #166534; font-weight: 700; }The selected option label becomes green and bold.
.choice + label:checked { color: #166534; }A label is not checkable; :checked belongs on the input before the combinator.
For .choice:checked + label, set colour to #166534 and font-weight to 700.
The pseudo-class identifies the control state, while + directs the visual effect to the following label.
ANALYSIS REQUEST
The initial discussion is without obligation. You receive an honest recommendation, suitable stages and the factors that affect price.