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

Removing Gray Shadow-like Box

Hello, everyone! I was wondering how I could remove this gray box around my object. When I select it, the box suddenly has this weird gray box around it. I can't seem to find what it is. I've included the images below. Thank you so much! I appreciate everything!

http://oi39.tinypic.com/2unubys.jpg

James Barnett
James Barnett
39,199 Points

Kristine Le -

When asking for help with an issue in your code, it's usually more helpful to show us your actual code so we can see what is causing something is usually a better approach than showing a screenshot and leaving us to guess* at might be the cause of what you are seeing.

For some tips on how to show us your code, check out the tips for asking questions video located in the right hand sidebar.

Thank you for the advice! Sorry I didn't know how to post the code, but I will keep this in mind for the future :)!

2 Answers

Chris Shaw
Chris Shaw
26,676 Points

Looks like the stock browser outline which you can use by adding the outline property like the below example.

myelement {
    outline: none;
}

Thank you so much! That did the trick! You are amazing :)