InterviewSolution
Saved Bookmarks
| 1. |
Define a two column layout using flexbox? |
|
Answer» We can use the CSS pseudo-class property :CHECKED on input type radio & checkbox and the adjacent SIBLING COMBINATOR (E + F) E is the first element which is input type radio or checkboxes and F is the NEXT element which is label. CSS /* E + F */ /* Selected radio input & label */ input[type=radio]:checked+label{ /* Your styles here */ } /* Checked checkbox input & label */ input[type=checkbox]:checked+label { /* Your styles here */ } |
|