![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
It will. Relative positioning is always relative to the code flow. If the two divisions are always immediately contiguous in the code, then they will always be positioned one above the other in the plane of the page. |
#2
| |||
| |||
|
|
not exactly. in your example. div1 is taken out of the flow and absolutely positioned 20px left and 30px top. div2 in normal flow would be in the browser top left (because div1 is out of the flow), relative positioning shifts div2 20px left of its natural position. what you end up with is the 2 divs overlaid. joe Murray *TMM* wrote: It will. Relative positioning is always relative to the code flow. If the two divisions are always immediately contiguous in the code, then they will always be positioned one above the other in the plane of the page. |
![]() |
| Thread Tools | |
| Display Modes | |
| |