[Top]
position:absolute; 
top:0; 
left:0; 
width:150px; 
height:100px; 

Margin, padding and border tests: test 2

In this page is a black absolute positioned DIV element. If the HTML element has margin and/or border properties, they should move the block to the right. The padding property for the HTML should move only the content to the right but not the absolute positioned element.

Border, padding and margin properties for the BODY element should not move the position of the absolute positioned element to the right. Only the content should be moved to the right.

html {
padding-left:100px; 
margin-left:100px}

Correct and incorrect positions of the DIV element and the main content:

Test 1 Test 2 Test 3 Test 4 Test 5 Test 6