This was excellent, thanks! For accesibility, I would recommend a modification: change ".radio__input" by removing the "display: none" CSS and adding "position: absolute; opacity: 0". This way, you can still select the element with the keyboard, but it's invisible and doesn't interfere with the spacing of other elements around it.
@cashmears3 жыл бұрын
If you have a complicated menu system this solution works well!
@jaymonserrat59822 жыл бұрын
This was an outstanding, quick, and very informative tutorial. Thank you!
@allisonlowe95942 жыл бұрын
Thank you for this tutorial! Quick question, how do we make it so that the button is able to be deselected?
@HilolaFayoziddinova Жыл бұрын
thank u very much this is actually what i need for my exam.
@work91673 жыл бұрын
This is great and smart, man! I'm happy you didn't use any JS for this
@Катерина-я6л Жыл бұрын
Thank you for a valuable lesson! You hepled me to solve my problem
@b4rt0093 жыл бұрын
I absolutely love your tutorials man!
@ImArtfulLee Жыл бұрын
Thanks a lot! It's very helpful 🥳
@thiagoleobons3903 жыл бұрын
2:50 you don't need the for attribute if you're wrapping the input field with the label element
@JesusPetit52 жыл бұрын
thanks! i didn't know how to align the buttons to the left
@qcdiamond82924 жыл бұрын
Wow. Double thanks. Just watch your other tutorial and it was very good. This one is just as good. Love them!
@arc82182 жыл бұрын
finally tysm i edited ur code and make it look like button instead
@angladephil4 жыл бұрын
Thank you !!! I will certainly integrate this HTML and CSS in your "beautiful forms" tuto/template for radio buttons. I like your work very much !
@mikeritter76292 жыл бұрын
Much Thanks! U saved my day
@jejakkaki29623 жыл бұрын
what font and theme do you use sir? i realy love it
@stanislavshilo60222 жыл бұрын
all this code doesn't work in 2022
@carlosnucette69274 жыл бұрын
Great, but when you put the input inside the label, it is not necessary to set the for attribute. Thanks.
@dcode-software4 жыл бұрын
Didn't know that, cheers!
@faythe034 жыл бұрын
A perfect tutorial, great job! :) Very elegant
@thezodop82292 жыл бұрын
man thanks a lot .. you made my day
@elliotgaramendi3 жыл бұрын
Hermano! Muchas gracias, es el mejor video! Explicado a detalle y sobre todo con el código más limpio! Muchas gracias!
@theethicalh37073 жыл бұрын
extremly perfect thank you very much bro
@ashrafess113 жыл бұрын
thank you so much , just subscribed :)
@katarinasekutor71994 жыл бұрын
mine doesnt switch to other buttons when i click them. it only works on the first one. does anyone know how to help?
@actualarsalan4 жыл бұрын
I know it has been 4 months since you posted this comment, but have you figured it out yet? Or is it still an issue?
@dcode-software4 жыл бұрын
Hey have you tried making sure the attributes are the exact same as they are in the video? Make sure you've got every character right
@treyp99353 жыл бұрын
I'm having same issue here all the characters are exactly the same no difference
@ahmadyogi13403 жыл бұрын
Make sure when you create a new label tag, use a different for name, let's say in this tutorial he's using "myRadioId", so I change the other radio button for to " myRadioId2"
@ualikhanyertayev78363 жыл бұрын
@@ahmadyogi1340 bro thanks that helped
@shiekha29733 жыл бұрын
Great but I have a question why when I'm making a selection it doesn't show anything of my selection
@orhankansiz54244 жыл бұрын
I love this videos. short and effective
@sathyam86883 жыл бұрын
Thanks for the tutorial
@deskwavz3 жыл бұрын
well done explanation bro.....
@Vladimir-z8m1w Жыл бұрын
Thank you!
@prince_cyprus3 жыл бұрын
isnt a div not allowed to be a child element of label?