Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Emma Willmann
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Emma Willmann
Treehouse Project Reviewer

Link and User Action Psuedo-Classes Video

Around the 8min mark of this video (in the CSS Foundations:Selectors section), Guil starts talking about the Focus psuedo class. In the css file, he gives a yellow background to input:focus. When he switches to the browser, the links get the yellow background, not the form text boxes. When he switches back to css, it now shows a:focus.

Is this just a mistake in the video editing?

1 Answer

Dave McFarland
STAFF
Dave McFarland
Treehouse Teacher

Good catch Emma. You're right, this appears to be a mistake in editing.

:focus {

}

Selects any element that's capable of focus: links, form fields or ANY HTML element that you add the tabindex attribute to.

To style focussed form input fields you'd use this selector

input:focus {

}