I wrote the following HTML code:

<span id="1">
<input type="text" value="Some text" />

<span id="2" style="position: absolute">
<input type="text" value="Some text" />

And I would like to place span #2 on the same position as span #1. I
tried to run the following command:


However, span #2 is placed a little below span #1 (2 pixels or so).
Does anyone know why this happens? Is there anyway to correct this?

It's worth noticing that the method clonePosition works accurately if
I replace the spans by divs (or any other block element).

Thanks a lot,

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to