![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, My research on this NG hasn't produced a satisfactory answer. * Here's what I want to do: move two div (s) (each has an image tag within) to another location on the same page. // no problem with that // prior to move, position = fixed; // at each move, I capture the new top value Now, the question is, how do I display the two div (s) with the new position and top *(the top part is working)? // currently, the second div, that is an image within it lays below the first one but the move action places the second div to the right of the first. In other words, with the new page, I don't know what value to use for the position Attribute for each of the two div (s). * I've tried different combo for the "Absolute" | "Fixed" value ... TIA. |
#3
| |||
| |||
|
|
On Apr 27, 11:17*pm, DL <tatata9... (AT) gmail (DOT) com> wrote: Hi, My research on this NG hasn't produced a satisfactory answer. * Here's what I want to do: move two div (s) (each has an image tag within) to another location on the same page. // no problem with that // prior to move, position = fixed; // at each move, I capture the new top value Now, the question is, how do I display the two div (s) with the new position and top *(the top part is working)? // currently, the second div, that is an image within it lays below the first one but the move action places the second div to the right of the first. In other words, with the new page, I don't know what value to use for the position Attribute for each of the two div (s). * I've tried different combo for the "Absolute" | "Fixed" value ... TIA. Is the problem too difficult to be resolved or is my problem statement not clear enough |
|
(I thought if you've done something similar it wouldn't be too difficult to understand what is presented here)? |
#4
| |||
| |||
|
|
Hi, My research on this NG hasn't produced a satisfactory answer. Here's what I want to do: move two div (s) (each has an image tag within) to another location on the same page. // no problem with that // prior to move, position = fixed; // at each move, I capture the new top value |
|
Now, the question is, how do I display the two div (s) with the new position and top (the top part is working)? // currently, the second div, that is an image within it lays below the first one but the move action places the second div to the right of the first. In other words, with the new page, I don't know what value to use for the position Attribute for each of the two div (s). I've tried different combo for the "Absolute" | "Fixed" value ... TIA. |
#5
| |||
| |||
|
|
... It's unknown and indecipherable what you are doing. You need to use javascript to read element attributes/properties. How you do that depends on just what you want to read and whether it is in the document flow or outside of it. * *My guess is that googling "javascript find position" might give youa start. * *If you want the image to lay on top of the existing page, you'll want position: absolute, and you'll want to either set a zIndex or write the html for those late in the page html so it's inherent zIndex is higher. * *Jeff |
![]() |
| Thread Tools | |
| Display Modes | |
| |