Re: Creating a new element and inserting before an existing causes line breaks
Jeremy L <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <46554852-8399-40dc-b8d0-b77c9fc66c78@m36g2000hse.googlegroups.com> |
On Mar 24, 2:29 pm, Boris Zbarsky <[email protected]> wrote: > Jeremy L wrote: > > This inserts the div element with the image, but breaks the line > > before and after my element > > 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;");