Re: Creating a new element and inserting before an existing causes line breaks
Boris Zbarsky <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
Jeremy L wrote:
>> The<div> is display:block, no?
>> -Boris
>
> Yes - I changed both to divs and added the display: block attribute -
> same result.
>
> cisco_newcode.setAttribute("style","display: block;");
My point is that a display:block node will cause line breaks before and after
itself.
-Boris