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 trialMark Lawson
6,148 PointsBorder color
I have changed the colour of the buttons and I have been able to change the all the colours in various states. However, I cannot get rid of the blue border when the button has been pressed. Can anyone help? If you need to see my code, I can post.
Thanks
Mark Lawson
6,148 PointsThanks Julian, unfortunately its in active state; not sure how I check in active state.
Mark
Julian Gutierrez
19,201 PointsI see that you solved your problem, but just an fyi many developer tools let you toggle active states to troubleshoot. In chrome there's a drop down in filters labeled ":hov" that lets you toggle active, hover, focus and visited states.
2 Answers
Mark Lawson
6,148 PointsIf its of any use to anyone, I managed to solve the problem.
.btn:focus,
.btn:active {
outline: none !important;
}
```
Chris Thomas
Front End Web Development Techdegree Graduate 34,909 PointsYou'll need to target it with the :focus pseudo class.
myButton:hover,
myButton:focus {
property: style;
}
Mark Lawson
6,148 PointsI have added your code; doesn't seem to work
.btn:hover,
.btn:focus {
border-color: #d74419;
}
Can you assist any more?
Thanks
```
Julian Gutierrez
19,201 PointsJulian Gutierrez
19,201 PointsNot a Bootstrap user but I would suggest to utilize the developer tools in your browser to identify which class or id is responsible for the blue border.