javascript - Weird margin when using .prependTo() -


I have a problem understanding the following behavior: I have a container ; Div & gt; in which some inline-block & lt; Div & gt; Nodes are included Example:

Enter image details here < / P>

Now I need to, the new foobar inline-block & lt; Div & gt; No problem to fill the elements, use jQuery - & gt; .prependTo () To protect (applied to the parent container) now comes the issue, for the first time .prependTo () using a "something, somewhere" Example:

I create an unknown margin on the right from the underlying element (it looks like me) Enter image details here

As you can see, this is the margin of only the very first element (again, I do not track the location using firebug / devoots. So, it does not think so). All further insertions are just fine, using the .insertBefore () code on the first code also works fine and looks great. Unfortunately, I use .inertBefore () , this is the reason why I am asking for some heads here.

What do I miss? Where does this strange margin / difference come from?

I only tested on Firefox 4/5/6 so far.

This is the white spot inside your parents div (i.e. line segment) It becomes clean for a simple space by HTML renderer. Remove it:

  & lt; Div id = "region" & gt; & Lt; / Div & gt;    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -