[riscosweb] Re: Presenting line-oriented text in HTML
- From: David Higton <dave@xxxxxxxxxxxxxxxx>
- To: riscosweb@xxxxxxxxxxxxx
- Date: Tue, 08 Jun 2021 17:07:35 +0100
In message <e8bd6b3959.gavin@xxxxxxxxxxxxxxx>
Gavin Wraith <gavin@xxxxxxxxxxxxxxx> wrote:
In message <8ac16a3959.DaveMeUK@BeagleBoard-xM>
David Higton <dave@xxxxxxxxxxxxxxxx> wrote:
I'm not even sure that what I want is even possible in HTML and CSS, so
I'm throwing the problem open to the group in the hope that someone can
put forward a solution.
CSS
div.scroll { overflow: scroll; }
is all you need. Works with netSurf too.
I wish.
Dunno what I'm doing wrong.
I'm working with an HTML file originally generated by my code, but
subsequently modified many times during experimentation. The body has
one div:
<div class="scroll">
All the lines within it are plain text, ending in <br>.
When I put the style in (and it needs "white-space: nowrap;" too),
and look at it with Firefox, the lines don't wrap - but the horizontal
scroll bar is at the bottom of the file; it doesn't float, it's only
visible when I scroll vertically to end of file. Not very useful when
looking for something higher up.
NetSurf doesn't even display text - it just has boxes with grey
backgrounds (clearly calculated for the text that's actually in the
file - I can see from the pattern of their lengths), with a left scroll
button to the left, and a right scroll and down scroll button to the
right. Strange. NS #5297. Also there's an overall horizontal scroll
bar, but again at the bottom of the file - it doesn't float.
David
Other related posts: