Reputation: 651
I've got a basic layout going in 960.gs. One line of text is absolutely positioned, starting within an inner DIV and exiting only the right side of the page.
Here's a screenshot:
The issue is that as the text appears as a series of unbroken words, if the width of the text box doesn't extend beyond the end of the page, it breaks some distance from the edge.
The code is basically as simple as:
<wrapper (containing) DIV>
<text stripe DIV>
<p></p>
</text stripe DIV>
</ wrapper DIV>
I know I've done something like this before and I can't for the life of me remember what I ended up doing.
Thanks.
Upvotes: 0
Views: 1031
Reputation: 136
Given the markup above:
div.container { width: auto; overflow: hidden; }
p { white-space: pre-wrap; }
...And then insert several hard returns into the string-of-unbroken-words at tested intervals.
The width: auto
pair is a placeholder; the computed width
of that div should equal the width of the page canvas.
Alternatively, you can set your text as an image and apply it as the background of the div
or paragraph with a repeat value of no-repeat
.
Upvotes: 1