Possible Duplicate:
Browsers' default CSS for HTML elements
Is there a reference somewhere of all the default styles of DOM elements?
For example, how big the margin above an <h1>
is?
Is there some easy way to extract this? I tried:
document.getElementById("myheading").style.marginTop
But it returned blank. Presumably because nothing had been defined for marginTop
?
Thanks in advance.