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 | <[email protected]> |
On Mar 24, 5:11 pm, Boris Zbarsky <[email protected]> wrote: > 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 I have tried multiple block formats with no luck.. Maybe someone can help me with a simple code snippit that will do this: Insert a graphic icon before every <A HREF on a page. Sounds simple, but I am having a hard time with it