Absolute Position of Div Layer

Case 1: The div layer itself

Line 1

Line 2

Line 3

line 4

Line 5

Line 6

Line 7: This is the last line of web contents

 

 

Return to Div Layer Absolute Position Tutorial

When the position of a div layer is set to absolute, the position properties will be aligned according to the browser window.

In this example, the top property of this div layer is 100px. That is, the top side of the div layer will align at 100px from the top browser window

The left property of this div layer is also 100px. That is, the left side of the div layer will align at 100px from the left browser window.

Note: The div layer will float over the web contents at the bottom