For example I have this <div>
with the following CSS:
.some-div{
position: relative;
top: 50px;
}
<div class="some-div">
<p>Some content</p>
</div>
How do I get the CSS property position
of the element with JavaScript (which in this example should result in the string "relative"
)?