How to Create a Custom Radio Button - HTML & CSS Tutorial

  Рет қаралды 67,303

dcode

dcode

Күн бұрын

Пікірлер: 48
@mezzanine510
@mezzanine510 3 жыл бұрын
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.
@cashmears
@cashmears 3 жыл бұрын
If you have a complicated menu system this solution works well!
@jaymonserrat5982
@jaymonserrat5982 2 жыл бұрын
This was an outstanding, quick, and very informative tutorial. Thank you!
@allisonlowe9594
@allisonlowe9594 2 жыл бұрын
Thank you for this tutorial! Quick question, how do we make it so that the button is able to be deselected?
@HilolaFayoziddinova
@HilolaFayoziddinova Жыл бұрын
thank u very much this is actually what i need for my exam.
@work9167
@work9167 3 жыл бұрын
This is great and smart, man! I'm happy you didn't use any JS for this
@Катерина-я6л
@Катерина-я6л Жыл бұрын
Thank you for a valuable lesson! You hepled me to solve my problem
@b4rt009
@b4rt009 3 жыл бұрын
I absolutely love your tutorials man!
@ImArtfulLee
@ImArtfulLee Жыл бұрын
Thanks a lot! It's very helpful 🥳
@thiagoleobons390
@thiagoleobons390 3 жыл бұрын
2:50 you don't need the for attribute if you're wrapping the input field with the label element
@JesusPetit5
@JesusPetit5 2 жыл бұрын
thanks! i didn't know how to align the buttons to the left
@qcdiamond8292
@qcdiamond8292 4 жыл бұрын
Wow. Double thanks. Just watch your other tutorial and it was very good. This one is just as good. Love them!
@arc8218
@arc8218 2 жыл бұрын
finally tysm i edited ur code and make it look like button instead
@angladephil
@angladephil 4 жыл бұрын
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 !
@mikeritter7629
@mikeritter7629 2 жыл бұрын
Much Thanks! U saved my day
@jejakkaki2962
@jejakkaki2962 3 жыл бұрын
what font and theme do you use sir? i realy love it
@stanislavshilo6022
@stanislavshilo6022 2 жыл бұрын
all this code doesn't work in 2022
@carlosnucette6927
@carlosnucette6927 4 жыл бұрын
Great, but when you put the input inside the label, it is not necessary to set the for attribute. Thanks.
@dcode-software
@dcode-software 4 жыл бұрын
Didn't know that, cheers!
@faythe03
@faythe03 4 жыл бұрын
A perfect tutorial, great job! :) Very elegant
@thezodop8229
@thezodop8229 2 жыл бұрын
man thanks a lot .. you made my day
@elliotgaramendi
@elliotgaramendi 3 жыл бұрын
Hermano! Muchas gracias, es el mejor video! Explicado a detalle y sobre todo con el código más limpio! Muchas gracias!
@theethicalh3707
@theethicalh3707 3 жыл бұрын
extremly perfect thank you very much bro
@ashrafess11
@ashrafess11 3 жыл бұрын
thank you so much , just subscribed :)
@katarinasekutor7199
@katarinasekutor7199 4 жыл бұрын
mine doesnt switch to other buttons when i click them. it only works on the first one. does anyone know how to help?
@actualarsalan
@actualarsalan 4 жыл бұрын
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-software
@dcode-software 4 жыл бұрын
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
@treyp9935
@treyp9935 3 жыл бұрын
I'm having same issue here all the characters are exactly the same no difference
@ahmadyogi1340
@ahmadyogi1340 3 жыл бұрын
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"
@ualikhanyertayev7836
@ualikhanyertayev7836 3 жыл бұрын
@@ahmadyogi1340 bro thanks that helped
@shiekha2973
@shiekha2973 3 жыл бұрын
Great but I have a question why when I'm making a selection it doesn't show anything of my selection
@orhankansiz5424
@orhankansiz5424 4 жыл бұрын
I love this videos. short and effective
@sathyam8688
@sathyam8688 3 жыл бұрын
Thanks for the tutorial
@deskwavz
@deskwavz 3 жыл бұрын
well done explanation bro.....
@Vladimir-z8m1w
@Vladimir-z8m1w Жыл бұрын
Thank you!
@prince_cyprus
@prince_cyprus 3 жыл бұрын
isnt a div not allowed to be a child element of label?
@pritech8302
@pritech8302 2 жыл бұрын
thankyou so much sir
@nicucucos7407
@nicucucos7407 3 жыл бұрын
Thanks dude!
@dcode-software
@dcode-software 3 жыл бұрын
No problem
@adamdeuxieme
@adamdeuxieme 3 жыл бұрын
Fabulous thanks !
@evelynbittelbrunn180
@evelynbittelbrunn180 4 жыл бұрын
Thank you!!!
@federicoangeles3021
@federicoangeles3021 2 жыл бұрын
Gracias owo
@leonardoantoniomaundokabon786
@leonardoantoniomaundokabon786 3 жыл бұрын
merci beaucoup
@javiervaez8587
@javiervaez8587 2 жыл бұрын
maquina
@g.t.a3739
@g.t.a3739 2 жыл бұрын
buy please a noisy keyboard!
Create Styled Radio Groups - CSS Tutorial
8:57
dcode
Рет қаралды 21 М.
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,2 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 608 М.
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 17 МЛН
She's very CREATIVE💡💦 #camping #survival #bushcraft #outdoors #lifehack
00:26
The secret to mastering CSS layouts
17:11
Kevin Powell
Рет қаралды 286 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 968 М.
Learn CSS BOX MODEL - With Real World Examples
17:45
Slaying The Dragon
Рет қаралды 130 М.
Please stop using px for font-size.
15:18
Coder Coder
Рет қаралды 192 М.
Pure CSS Custom Radio Buttons Tutorial
15:37
FollowAndrew
Рет қаралды 4,8 М.
How to Properly Layout A Website (For Beginners)
14:50
The Website Architect
Рет қаралды 620 М.
Design A Custom Radio Button Using HTML and CSS
11:16
GTCoding
Рет қаралды 12 М.
Useful & Responsive Layouts, no Media Queries required
11:03
Kevin Powell
Рет қаралды 179 М.
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,2 МЛН