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

Jenny Swift
Jenny Swift
21,999 Points

firebug layout panel does not show where margin is coming from

Hi, I am trying to troubleshoot with firebug. I have an element to which I am not aware of applying any margin, and when I use the style panel in firebug, no margin rules show up, and yet in my browser it does have a margin which I want to remove. When I click on the layout panel in firebug it says the element has a margin of 16, but I don't know how to find out where that margin is coming from in my code. Is there some way of finding this out please?

1 Answer

James Barnett
James Barnett
39,199 Points

It's probably coming from some default margin, check out the computed rules tab.

Jenny Swift
Jenny Swift
21,999 Points

Problem solved. Thank you! :)