JS Party: JavaScript, CSS, Web Development cover image

A very !important lesson

JS Party: JavaScript, CSS, Web Development

00:00

Using CSS, You Can Do This With JavaScript

Focus within is kind of like a parent selector, it's saying, if the parent of the ancestor, I'm an ancestor of something that has focus, make me visible or do whatever you want to me. So on William Sonoma, when you are in one of the navigation bars and your focus has you've tabbed into there, the drop down menu will be open. Or we have the target pseudo class, which is super cool, but that's limited to just target. You can use it for similar things to target is saying when you're focused on this, when the page has gone down to this section, scroll down to the section on purpose,. Do this thing with it,

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app