How to Create a Custom Checkbox with PURE CSS - HTML & CSS Tutorial (Web Design)

How to Create a Custom Checkbox with PURE CSS - HTML & CSS Tutorial (Web Design)

dcode

4 года назад

37,002 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@justsaybobby
@justsaybobby - 19.11.2023 21:40

any idea how we can style the label border and background when the checkbox is checked?

Ответить
@irfandz3031
@irfandz3031 - 12.01.2023 23:55

Thanks for very nice, clear and straightforward explanation with all the details needed!

Ответить
@DRUEVISUAL
@DRUEVISUAL - 22.10.2022 14:14

Very clear and straightforward explanation!
Thank you!

Ответить
@abhisheksurela2881
@abhisheksurela2881 - 25.09.2022 08:55

Could you please tell me which fonts are you using?

Ответить
@ammaransari3392
@ammaransari3392 - 01.07.2022 14:41

This video is Gold, I've been find a tutorial as such for almost 2 days... <3

Ответить
@olgabutsik6632
@olgabutsik6632 - 17.06.2022 15:16

Thanks. I have done it, the best video for styling checkbox i had ever seen)))

Ответить
@gedoumazoutsuki
@gedoumazoutsuki - 10.06.2022 12:38

holy f*** the fact that you have to go and to so much stuff just to have a checkbox look the way you want blows my mind...i'd rather go on and create my own with js or if there is no js in the project(wich is unlikely) i'de rather leave the stock one. its not to diss you video, its cool. just the fact that html didn't get a solution for this is horrible..it's just an input...give us control over it😑

Ответить
@perfectionchizuruoke6207
@perfectionchizuruoke6207 - 11.04.2022 13:06

Why should the input tag be placed under the label
I got really confused fr

Ответить
@selamyigrem8367
@selamyigrem8367 - 17.03.2022 16:13

great tutorial @dcode. i have a question tho, ---- if the background of the parent element (in this case, the label) isNOT white, the white check mark stays in place without us clicking it ------- is there anyway to get around that? tnx!

Ответить
@developer4613
@developer4613 - 11.03.2022 08:15

Great video , thank you so much. 👏🏻🙏🏻🎉

Ответить
@OyunGezerTR
@OyunGezerTR - 17.02.2022 11:46

thank you sir!

Ответить
@drekforder2952
@drekforder2952 - 05.02.2022 19:46

Great video. can I just ask a quick question? what is difference between:
element + sibling
element ~ sibling
?

Ответить
@riyazahamed9208
@riyazahamed9208 - 10.01.2022 14:59

Unicode is not working
Could you please help

Ответить
@abbyroskind9027
@abbyroskind9027 - 29.12.2021 21:40

As others have mentioned, the property display: none seems non-workable as this is a problem for screen readers and accessibility.

Do you need to involved JS if you want to be able to actually click on the box to get the check mark? It seems like this solution only allows you to click the label to check the box.

Ответить
@emAyush56
@emAyush56 - 29.11.2021 15:51

We cannot have a div element inside a label. It's a HTML validation error. Can use 'span' or 'a' element, instead. Neat design otherwise.

Ответить
@patrickc.6183
@patrickc.6183 - 30.03.2021 21:47

Great video Dom!

Ответить
@Andy_a7
@Andy_a7 - 19.02.2021 03:19

Thank you for the video! Just wondering, <label> is inline element, right? How come we can turn inline (non-block) element into a flex container? Or any Html tag can be a flex container?

Ответить
@ankitkumarjat9886
@ankitkumarjat9886 - 29.07.2020 16:00

Great video, now checkbox is not going to be headache for me.
Thanks man 👍

Ответить
@Varkatel
@Varkatel - 02.07.2020 11:41

display:none
are you kidding me?
it worse solution ever

Ответить
@ibrahimahmad1019
@ibrahimahmad1019 - 16.05.2020 16:06

thanxxxxx bro

Ответить
@thiagoSilva346plus
@thiagoSilva346plus - 26.04.2020 19:55

God, you are a god!

Ответить
@syediqbalahmed3176
@syediqbalahmed3176 - 28.02.2020 11:27

valo

Ответить
@qcdiamond8292
@qcdiamond8292 - 07.02.2020 22:34

Well made. Thanks!

Ответить
@Frankslaboratory
@Frankslaboratory - 16.09.2019 13:55

Great video and well explained, thank you

Ответить
@bikramchettri9405
@bikramchettri9405 - 16.09.2019 12:32

Good Content

Ответить
@TomasMisura
@TomasMisura - 16.09.2019 12:17

Well this is what I have been looking for because I'll be using this a lot. Thanks a lot for that !!!

Ответить
@abeprangishvili
@abeprangishvili - 16.09.2019 11:55

good !!!

Ответить