Custom Checkbox Tutorial

  Рет қаралды 39,992

Web Dev Simplified

Web Dev Simplified

Күн бұрын

Пікірлер: 34
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
So I have something to admit. These checkboxes aren't 100% complete. I forgot to add a disabled state to the checkboxes. Luckily, it is an easy fix and is just another property like focused. I added the code for disabled state in the CodePen and GitHub repo linked in the description. I hope you guys don't mind too much.
@nwaguchima2280
@nwaguchima2280 2 жыл бұрын
of course, we don't, we appreciate your effort. Also, I added justify-content: center, and align-items: center, to the .checkbox-container label, the aligns the label and the custom boxes, because you can visually see a difference, the boxes being up a bit. Thank you so much, Kyle
@thokankit007
@thokankit007 5 ай бұрын
With such a good explanation by you, i was able to do that by my self.
@vibonacci
@vibonacci 5 жыл бұрын
display: flex; justify-content: center; align-items: center; has literally changed my life
@_.sunnyraj._
@_.sunnyraj._ 4 жыл бұрын
Grid will again reverse your life
@TOMGAMING-hy9hi
@TOMGAMING-hy9hi 3 жыл бұрын
@@_.sunnyraj._ 😂😂😂😂😂😂
@maplestoryinchinese
@maplestoryinchinese 4 жыл бұрын
Underrated video. Who's here in 2021?
@camerondoyle391
@camerondoyle391 3 жыл бұрын
Most underrated video on this channel. Life saver mate
@kotofun
@kotofun 2 жыл бұрын
Extremely useful tutorial! Thanks, Kyle!
@jamesle-goff4546
@jamesle-goff4546 2 жыл бұрын
For anyone following this tutorial. If you experienced problems with responsiveness when setting the height and width of your checkbox, simply change the properties to min-height and min-width. 👍
@dtawantawng5131
@dtawantawng5131 2 жыл бұрын
Good fix! Flex-shrink: 0; also works (:
@thokankit007
@thokankit007 5 ай бұрын
Now tts how u explain this !!! Awesome
@GammaWraith
@GammaWraith 5 жыл бұрын
Great video, did some things slightly different but you helped guide me in the right direction.
@olezhonnv3215
@olezhonnv3215 Жыл бұрын
We need id for every chexkbox here. If I have a datagrid with 2500 rows, and I need a checkbox in every row, to be able to select multiple rows. So I need to generate id for each checkbox in this case. That is why I put input inside label, to get rid of required id for each checkbox.
@metaverseant4470
@metaverseant4470 Жыл бұрын
Do you need to have a legend or fieldset for Checkbox?
@LuckystrikeGFXer
@LuckystrikeGFXer 6 жыл бұрын
Could you maybe make a tutorial/challenge to background videos with transparent content on top? I tried do to it myself but noticed I have trouble having it responsive to other aspect ratios and different screen sizes. I like that you are giving us tips on the smaller parts of CSS where we can look for support for people which use screen readers, never considered it myself that some website do not support it.
@WebDevSimplified
@WebDevSimplified 6 жыл бұрын
That is a great idea! I will add that to my list of video ideas. I think this may even be my next challenge I do. Thanks for the suggestion!
@LuckystrikeGFXer
@LuckystrikeGFXer 6 жыл бұрын
Would be cool and no problem, we are all here to learn!
@ifananwar2199
@ifananwar2199 Жыл бұрын
how to fix the checkbox not showing? help
@kertas4688
@kertas4688 Жыл бұрын
Thank You!
@ahmedboutaraa8771
@ahmedboutaraa8771 4 жыл бұрын
Hhhhhh I never thought that you started like this
@blossombabalola1234
@blossombabalola1234 3 жыл бұрын
For some reason, clicking on the label does not check the radio box for me
@AdityaPratapSingh-ss8wg
@AdityaPratapSingh-ss8wg 2 жыл бұрын
same problem
@2teso523
@2teso523 4 жыл бұрын
You are the man!
@muhammadjunaid3684
@muhammadjunaid3684 3 жыл бұрын
Obviously. Any doubt? Hahaha
@UzmaKhan-yo2kg
@UzmaKhan-yo2kg Жыл бұрын
All is right ,but my content: ' \002714'; nor "\2714' not "✓' nothing works
@gijrijasdas5055
@gijrijasdas5055 4 жыл бұрын
How to add this checkbox and combone with js sir? Please make it a tutorial i really need your help
@soudabeheydari3945
@soudabeheydari3945 4 жыл бұрын
and if we want to check just one checkbox how can do that?
@Mark1-f2n
@Mark1-f2n 4 жыл бұрын
you need to use radio instead checkbox
@RahulThakur-jl7pm
@RahulThakur-jl7pm Жыл бұрын
checkmark is visible on selection, anyone facing that issue...?
@Volodymyr_Bulhakov
@Volodymyr_Bulhakov Жыл бұрын
🙋👏👏👏
@talhasupport3670
@talhasupport3670 3 жыл бұрын
I think this is an easy way to do this: *, *::before, *::after { box-sizing: border-box; user-select: none; } body { width: 100%; height: 10a0vh; margin: 0; display: flex; justify-content: center; align-items: center; } .checkbox-group { margin: 1rem 0; position: relative; display: flex; align-items: center; flex-flow: row nowrap; } .checkbox-group label { font-size: 30px; cursor: pointer; margin-left: 2.5rem; } .checkbox-group label::before { content: ""; position: absolute; left: 0px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; opacity: 0.9; color: #fff; background: rgb(251, 251, 251); border: 0.1rem solid rgba(0, 0, 0, 0.9); border-radius: 0.2rem; transition: all 0.5s ease; } .checkbox-group input[type="checkbox"] { cursor: pointer; opacity: 0.1; position: absolute; } .checkbox-group input[type="checkbox"]:checked + label::before { content: "\002714"; background: orangered; font-size: 1rem; text-align: center; margin: auto 0; } /* content: '/f00c'; */ CheckBox 1 CheckBox 2 CheckBox 3
@gulledyusefhassaan5313
@gulledyusefhassaan5313 2 жыл бұрын
the goat
@moizkhalid2714
@moizkhalid2714 3 жыл бұрын
just the video frontend guys want
The secret to mastering CSS layouts
17:11
Kevin Powell
Рет қаралды 299 М.
Custom Checkbox Pure CSS Tutorial
11:24
FollowAndrew
Рет қаралды 16 М.
요즘유행 찍는법
0:34
오마이비키 OMV
Рет қаралды 12 МЛН
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН
JS Checkbox Challenge! #JavaScript30 10/30
11:19
Wes Bos
Рет қаралды 30 М.
Stop Using Pixels For Media Queries
18:48
Web Dev Simplified
Рет қаралды 56 М.
Transparent Login Form Tutorial
16:28
Web Dev Simplified
Рет қаралды 17 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1,3 МЛН
Custom Checkbox in React (Animated and Accessible)
11:05
Tom Dohnal
Рет қаралды 9 М.
Learn CSS Subgrid in 14 minutes
14:19
Slaying The Dragon
Рет қаралды 95 М.
How To Make Tooltips With Only CSS
15:05
Web Dev Simplified
Рет қаралды 115 М.
The JavaScript checked property is easy ✅
10:07
Bro Code
Рет қаралды 33 М.
요즘유행 찍는법
0:34
오마이비키 OMV
Рет қаралды 12 МЛН