JS Party: JavaScript, CSS, Web Development cover image

A very !important lesson

JS Party: JavaScript, CSS, Web Development

CHAPTER

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,

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner