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 trialCamden Mounts
9,453 PointsElement:focus Selector in Browser
At 7:32, when Guil clicked on the text box, there was a hazy-blue border that surrounded the text box. Is this a browser default, or can it be edited through the CSS code?
2 Answers
Jonathan Grieve
Treehouse Moderator 91,253 PointsI believe it can! If you change the border property of your focus pseudo selector?
input#radio:focus{
border-color: #anycolouryoulike;
}
Camden Mounts
9,453 PointsThanks Jonathan, that does work for a rectangular control. But if the borders are rounded using the "border-radius" property, the hazy-blue outline will still appear around the box in the form of a rectangle. Google has not been any help, and I am not implementing a form into any webpage, so the question was just out of curiosity.