I Love This CSS Focus Hack

  Рет қаралды 19,183

Web Dev Simplified

Web Dev Simplified

Күн бұрын

The CSS :focus state is simple on the surface, but there is actually quite a lot going on behind the scenes. There are 3 total :focus states you can use in CSS and even a secret fourth state that make :focus much more complicated than it may first appear. In this video I go over everything you need to know about CSS :focus states.
📚 Materials/References:
CSS :has Selector Video: • This Is So Much More T...
CSS :has Selector Article: blog.webdevsimplified.com/202...
🌎 Find Me Here:
My Blog: blog.webdevsimplified.com
My Courses: courses.webdevsimplified.com
Patreon: / webdevsimplified
Twitter: / devsimplified
Discord: / discord
GitHub: github.com/WebDevSimplified
CodePen: codepen.io/WebDevSimplified
⏱️ Timestamps:
00:00 - Introduction
00:29 - :focus
01:16 - :focus-visible
03:05 - :focus-within
04:19 - :focus-visible-within
05:38 - Use Cases
#CSSFocus #WDS #CSS

Пікірлер: 35
@LePhenixGD
@LePhenixGD Ай бұрын
The :has pseudo-class really makes CSS easier
@aer0449
@aer0449 Ай бұрын
Kyle, bro I took your CSS course and I loved it .... Anyone looking to drastically improve on CSS do buy his course, its short and to the point .... I am so thankful to you brother ... Amazing work ❤
@bogdanterzic9297
@bogdanterzic9297 Ай бұрын
Link to this course?
@lexidugo
@lexidugo Ай бұрын
This came at just the right time !!! Thanks so much
@saqibkhanz8417
@saqibkhanz8417 Ай бұрын
Waiting for your lengthy project-based videos.
@specializer222
@specializer222 Ай бұрын
I love this short videos about functions in CSS 😍
@bharathnaidu4636
@bharathnaidu4636 Ай бұрын
you always rocks thanks for the content
@akoladebode-ajayi327
@akoladebode-ajayi327 Ай бұрын
Thank you sir 😊
@dragenn
@dragenn Ай бұрын
This is invaluable!
@WebDevelopmentWithSS
@WebDevelopmentWithSS Ай бұрын
This video is amazing.
@akramilyas6030
@akramilyas6030 Ай бұрын
thanks for all
@user-ko1cw6mv4q
@user-ko1cw6mv4q Ай бұрын
❣️ great video
@imnikki00
@imnikki00 Ай бұрын
awwwwwwwwwwww thank you ! Im great fan of yours sir
@ArielFerro
@ArielFerro Ай бұрын
Wow! I had no idea about those CSS selectors for controlling focus. This could spark a really interesting discussion about the accessibility advantages of each approach. But I definitely want to thank you for addressing such a crucial issue for people with low vision by presenting alternative techniques to the traditional ones. Kudos to you!
@Frexuz
@Frexuz Ай бұрын
Is the has(focus-visible) doable in tailwind? PS: When you tabbed between the inputs back and forth, as a color-impaired person, I basically didn't see any change between "black" and "red" (and the input cursor is incredibly thin). Please use "blue" in the future :))
@ajiteshmishra0005
@ajiteshmishra0005 29 күн бұрын
What is the difference of using in header and body.
@rayyanabdulwajid7681
@rayyanabdulwajid7681 Ай бұрын
I have made a click drop-down using css only using css "focus outside". When i click outside the drop-down, the drop-down closes. This was not possible when we were using css checkbox approach
@abdullaahmad5503
@abdullaahmad5503 Ай бұрын
Video on vh and dvh please
@alexkuehne86
@alexkuehne86 Ай бұрын
That means :focus-within could also be replaced with :has(:focus)?
@rishiraj2548
@rishiraj2548 Ай бұрын
🙂👍🎉
@sushantchoudhary07
@sushantchoudhary07 Ай бұрын
first 🥇
@neimado
@neimado Ай бұрын
Please calm down the head shaking while you talk, it's kind of distracting.
@jelilabudu
@jelilabudu Ай бұрын
I get your frustration. However, the most important thing you need is to pay attention to is the message. I often watch people with fast speech, native accents, etc, which makes it difficult for me to grasp at once, what they're trying to put across. So, I either lower the speed or, I replay any section part that I don't not understand.
@YO-BIZZY
@YO-BIZZY Ай бұрын
That’s the best part tf
@MrHellmager
@MrHellmager Ай бұрын
People will really hate no matter what huh 😅
@neimado
@neimado Ай бұрын
@@MrHellmager It's not called "hate", it's called *constructive criticism*. Imagine thinking the only way to communicate is either praise or "hate".
@rs832
@rs832 Ай бұрын
That's a weird way to say "thank you for the very helpful free content!"
@ezwtwrziehag1736
@ezwtwrziehag1736 Ай бұрын
this isnt secret, people know this long ago
10 Tailwind Classes I Wish I Knew Earlier
13:31
Web Dev Simplified
Рет қаралды 158 М.
The Most Important Skill You Never Learned
34:56
Web Dev Simplified
Рет қаралды 31 М.
WHY DOES SHE HAVE A REWARD? #youtubecreatorawards
00:41
Levsob
Рет қаралды 39 МЛН
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 11 МЛН
Pray For Palestine 😢🇵🇸|
00:23
Ak Ultra
Рет қаралды 34 МЛН
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 894 М.
React Server Components Change Everything
15:48
Web Dev Simplified
Рет қаралды 188 М.
Junior Vs Senior Code - How To Write Better Code
22:13
Web Dev Simplified
Рет қаралды 1,1 МЛН
How to take control of Flexbox
16:01
Kevin Powell
Рет қаралды 99 М.
Avoid these 5 beginner CSS mistakes
21:38
Kevin Powell
Рет қаралды 53 М.
23 CSS features you should know (and be using) by now
31:31
Kevin Powell
Рет қаралды 59 М.
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 420 М.
Top 10 Advanced CSS Responsive Design Concepts You Should Know
20:16
Web Dev Simplified
Рет қаралды 497 М.
Interview With A Sr JavaScript Dev | Prime Reacts
24:43
ThePrimeTime
Рет қаралды 159 М.
Why Are Open Source Alternatives So Bad?
13:06
Eric Murphy
Рет қаралды 399 М.
WHY DOES SHE HAVE A REWARD? #youtubecreatorawards
00:41
Levsob
Рет қаралды 39 МЛН