Hallo Martin,
marginRight:100px
muss so geschrieben werden…
margin-right: 100px;
#test {
position: absolute;
right: 100px;
top: 20px;
width: 300px;
height: 300px;
border: 1px solid rgb(220, 20, 60);
}
<div id="test"></div>
Das sollte reichen. Der border ist nur zur Hilfe gedacht.