Hi,

This probably isn't the answer, but FWIW, those IDs are invalid. IDs
cannot start with a digit.[1]

It'd be nice if correcting them happened to fix it, but I tend to
doubt it. :-)

[1] http://www.w3.org/TR/html401/types.html#type-name
--
T.J. Crowder
tj / crowder software / com
www.crowdersoftware.com

On Sep 3, 3:24 am, Tiago <[email protected]> wrote:
> Hello,
>
> I wrote the following HTML code:
>
> <span id="1">
> <input type="text" value="Some text" />
> </span>
>
> <span id="2" style="position: absolute">
> <input type="text" value="Some text" />
> </span>
>
> And I would like to place span #2 on the same position as span #1. I
> tried to run the following command:
>
> $('2').clonePosition($('1'));
>
> 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,
> Tiago
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to