Is there a way to detect the true border, padding and margin of elements from Javascript code? If you look at the following code:
It's possible, but of course, every browser has its own implementation. Luckily, PPK has done all the hard work for us:
http://www.quirksmode.org/dom/getstyles.html