Request: syntax change for radio inputs
-
Hey Aleexander,
while trying to style the tests radio-buttons/inputs with css I found that this is very difficult due to the code syntax.
It now is
<label for....> <input id=""> Label Text </label>
However it would better be
<input id=""> <label for....>Label Text</label>
The reason is that in the second case, the radios can easily be styled with CSS as
input[type=radio] + label {}
and
input[type=radio]:checked + label {}
While in the first case they can not.
(it is called adjacent sibling combinator in css, the second sibling has to follow the first, not enclose it)It would be awesome to change that in some future update! It would open so many doors for styling!
David
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Request: syntax change for radio inputs’ is closed to new replies.