One CSS Trick You Didn't Know About! +200k Subscribers Today!

preview_player
Показать описание
Today's Question: What is the one thing you want to learn the most?
-- First, I'm going to show you a very cool CSS trick that uses 2 pseudo-classes to conditionally apply properties to certain elements based on user input. Then, I'm going to talk a little bit about myself and the channel at 8:47 -- being that today, we will pass the 200,000 subscribers mark!

PS: Why the hell did I keep calling them "pseudo-selectors"?

As always, thanks for your support and helping me reach this awesome milestone!

- - - - - - - - - - - - - - - - - - - - - -

Subscribe for NEW VIDEOS weekly!

^-Chat with me and others

- - - - - - - - - - - - - - - - - - - - - -

Come to my discord server or add me on social media and say Hi!
Рекомендации по теме
Комментарии
Автор

Congratulations on your 200K+ subscribers~! I find your courses on Angular 6 very helpful and started watching your tutorials. I find your tutorials very easy to follow, up-to-date with versions. Thank you!

pandarzzz
Автор

you can see that trick from 8:21 to 8:30.

-indeed
Автор

I recently discovered this channel ... I wish I had found it early ... so many goodies and practical stuff ... 200+K should be a piece of cake for this great channel!!!

kevinzhang
Автор

Awesome you are. I follow you a lot. Thanks for sharing your learning.

surajitdas
Автор

Congrats, design teacher.

I like your videos and vision. They are generally, show us intermeddiate tricks, usages, examples, training and so on...

You had nearly 200.000 persons, students, watchers, followers. This means for you, your responsibilities are increased. You should to reach every single person in these 200.000. You should be in communication with every single person. More important, your vision should be adressed to 200.000 and 1.000.000 persons after this time. (for now your next aim as for me.)

You are going very good, i like your contents. I hope, you will gather your aims. Have a good life, teacher :)

m.caglartufan
Автор

Thank you for sharing! great content! greetings from Colombia!

johngarzon
Автор

This whole video could be just a picture instead.

rickieanand
Автор

Is it not a bad practice to put the logic of the code in CSS? That's cool to know this trick but I don't think it is the role of CSS to do this kind of stuff.

florian
Автор

Well, it's pretty cool trick but I don't see any practical useful use case. Do you?

konradbachowicz
Автор

Congratulations for the 200k, keep the hard work, we appreciate it!!!

carrillocarlosce
Автор

Just 200k seriously. You deserve more that for sure. For all those awesome contents in this channel. 😅😅😅😅

shashanksshetty
Автор

Really??? 8 years?... wow... I Discover your channel a 6 months... Thanks for the tutorials... But i prefer vuejs by the way... hahahahahaha!!!

ibernohoffmann
Автор

Hi gary and thx for this great channel, and i think you would like this trick : mkdir some_dir && cd $_ will create a folder and cd to it.

maymumk
Автор

Omg, its crazy... I make a function using that trick ... Its act like event listener in css... 😎 ❤️

zlackbiro
Автор

I'll tell you another handsome css selector:

Storkzre
Автор

And one help please..It's my lab program and I have tried it but could not find the solution..Below is the question...Please if anyone knows the solution send here

Q : Write a JavaScript code that displays text “TEXT-GROWING” with increasing font
size in the interval of 100ms in RED COLOR, when the font size reaches 50pt it
displays “TEXT-SHRINKING” in BLUE color. Then the font size decreases to 5pt.

Thank you 😊

RahulRathod-rboq
Автор

There are a misleading information about the "root and :not". Author had to exclude <body> from :not(p), otherwise p's would inherit color of body; that's the reason the :not is nested under body, otherwise :not(p) would affect <body> itself. But it has been said the ":not" HAVE to by placed under the body selector, what is not true. Author also says "everything in html means body", do not catch on this, guys..

Reloecc
Автор

So big thumps up for you opening up!! It is well deserved, your success. I really have begun using you channel, and is getting inspired by your courses...
Keep it up, and again kudos for your observation and change in health and mentality of challenging youself :-)

Feddersen
Автор

No one wants to maintain code that contains tricks like this (even yourself after a while). Also, its a very limited functionality: one day if it has to be upgraded to something more complex it has to be rewritten with JS (=a double work)..

sergeyk
Автор

There is a similar trick with checkbox :checked pseudo-class. It can be used as some sort of css boolean variable and toggle things, like hamburger menu for example.

divocean