Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,650 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 :)