T.J.,

Thanks for the help, but I tried replacing the numbers with valid IDs
and the result was the same...

Tiago

On Sep 3, 5:09 am, "T.J. Crowder" <t...@crowdersoftware.com> wrote:
> 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 / comwww.crowdersoftware.com
>
> On Sep 3, 3:24 am, Tiago <tiago.torr...@gmail.com> 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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to