Thanks a lot Raj: The margin-bottom property sets the bottom margin of an element.
JamesEggers JamesEggers 7, 13 52 Built to be small and for a specific job. Then use this syntaxt to get its value.: Weird, I just tried the sample provided at the bottom which uses my code and it works
You can use getComputedStyle and getPropertyValue to get top margin.