Your script is removing the id from that div and wrapping it at least two others, and/or there are div tags in the imported text file.
In any case, it (the javascript generated markup) doesn't look like what you have in your post, though the raw source code of the page does. What you're calling a line break seems to come from the script generated height (42px in Opera at least) of one of the created divs.
This div (highlighted) appears to survive the javascript unscathed:
Code:
<div style="line-height: normal; background-color: #F2F5A9; margin-right: 100px; padding-top: 2px; padding-bottom: 2px; border-style: solid; font-weight: bold; font-size: large">
<div id="marquee" >Chart data generation and uploading has been updated for all flash charts. No changes to underlying strategies. (05.14.2012)</div>
</div>
However, the generated source (in Opera again) looks like so (same surviving div highlighted):
Code:
<div style="line-height: normal; background-color: #F2F5A9; margin-right: 100px; padding-top: 2px; padding-bottom: 2px; border-style: solid; font-weight: bold; font-size: large">
<div style="display: block-inline; width: 569px; height: 42px; overflow: hidden;">
<div style="float: left; white-space: nowrap; padding-top: 0px; padding-right: 569px; padding-bottom: 0px; padding-left: 569px">Chart data generation and uploading has been updated for all flash charts. No changes to underlying strategies. (05.14.2012)</div>
</div>
</div>
And it looks like there's an extra closing /div tag (red). But that doesn't seem to hurt anything.
What I did was add a height property of 25px to the surviving div, that seems to fix things (addition red):
Code:
<div style="line-height: normal; height: 25px; background-color: #F2F5A9; margin-right: 100px; padding-top: 2px; padding-bottom: 2px; border-style: solid; font-weight: bold; font-size: large">
<div id="marquee" >Chart data generation and uploading has been updated for all flash charts. No changes to underlying strategies. (05.14.2012)</div>
</div>
Bookmarks