r/learnjavascript • • Apr 10 '13

[JS Properly] Question about DevTools- Can't figure out last question in quiz 1.2

I've watched the part where he edits the hover text over and over again but I feel like I'm missing something. When I highlight the correct element and check the "hover" box, nothing changes in the CSS on the right panel.

Link for the the lazy

5 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/wishinghand Apr 10 '13

I think I know less CSS than the tutorial assumes. Thanks though. I'll zip through the codecademy refresher.

1

u/tyroneslothtrop Apr 11 '13

I think the video mentioned adding new rules. You use the little plus button. A hover rule uses the selector you want to target (e.g. #mydiv) followed by :hover. So altogether it would be something like: #mydiv:hover {color:red}. In the dev tools, the tab button will move you from the selector to the declarations (it will also auto-complete declarations).