CSS’s :target pseudo-class is surprisingly powerful

preview_player
Показать описание
#Shorts CSS’s :target pseudo-class is surprisingly powerful, allowing you to select and style elements that are the target of an anchor link.

#css #webdev #webdeveloper #frontend
Рекомендации по теме
Комментарии
Автор

dang, what it feels like to be superhero?

estonian
Автор

You're always on 🔥
For years non-stop!
Awesome!
And never ever slow down!

maxralph
Автор

hey that scroll-padding-top ! Never heard of it before ! Maybe what I need !

-ct-celcomtechniques
Автор

I had to watch this four times. Goodness me.

mcglk
Автор

One of my first training projects through freeCodeCamp was to (re)create a page that has some javascript info in it. I used the :target selector for the first time there along with some masking for the first time as well was an amazing thing to behold!

Unis
Автор

Man, I love your videos thank you very much

abdelhaleemahmed
Автор

I know about target but scroll padding is a game changer. I always used to put an invisible element before the actual target (of course then :target doesn't work) but not anymore.

borstenpinsel
Автор

you're the best kevin, thanks you

mangoboy
Автор

Yup, I found out about this when I was making an interactive map for my uni

hikari
Автор

I'd like to see more of the last part of this reel. 🙏🏽

EmmanuelOdii
Автор

ahh man you are MASTER CSS sensie teach me more

maxgamer
Автор

C'est un truc de fou all what you learn to me. ❤

cd-mar
Автор

Hi Kevin, thanks for the clip... But how do you do the reverse i.e. highlighting the navigation when active and also, automatically highlighting the navs when scrolling.

benjen
Автор

I don't think I knew about the :target selector before.

NotKyleChicago
Автор

hey youtube, get your shayt together will ya?
I just pressed j while watching this short and I got ported to another short.

anasouardini
Автор

Woah... Do you have a full video on this??

kylevandeusen
Автор

Can you please do a video on the example you’re showing or link to one if you already have? The highlighting one div while clicking on another exactly what I was working on today but didn’t breakthrough

JStack
Автор

I need to develop a section having two columns
Left column looks inside container and right looks full widht but i am stuck in😐😑😶
Would you mind to configure

crackerhunt
Автор

Yes, give me more excuses to avoid learning Javascript <.<

yunoletmehaveaname
Автор

This is my todays best tip 💡, thank you so much🫡😘

vansh