I am doing the "CSS Positioning->Margin top, right, bottom, left" section. In experimenting with the margin values, it seems to me that only the top and left values really seem to decide the position of the div block. For example I experimented with the following:
margin: 20px 20px 10px 5px;` OR
margin: 20px -20px 10px 5px;
Expecting the div block to move to the right but it remained in the same position.
What space is the margin parameter defining? It seems like it is defining space between screen border and margin edge.
also it seems like what matters is top and left margin setting.
The only way that makes sense is if I consider that the px values are respectively moving the screen edge away from the div block by that value.