In some of the web developer debug tools when you hover over an element the margin or padding is shown with a yellow color so you can see it easily.
How are they doing this? Is it possible to do the same thing with CSS?
Update:
It looks like they are adding layers over the top of the original element (see image - the A is not completely highlighted meaning it's not a background color).