I am attempting to add content with a scroll. I thought maybe I should make it a text box and remove the borders. I am seeing now this is not the way to go (being that the box is for input not content).
How would I achieve this: content that can scroll. I want two rows, 80 cols and the ability for the visitor to scroll the content.
Basically you want to make a DIV scrollable and the simplest way is to give it dimensions and set the overflow. For example:
<div style=“width: 8em; height: 2em; background-color: #ff0000; overflow: auto;”>Det finns ingen som älskar smärta, som söker det och vill ha det, just för att det är smärta…</div>
You could also have set overflow value to ‘scroll’ instead of ‘auto’, which is probably what you wanted.
That’s like asking “where should I place my sofa?” To answer that, we’d need to know the layout of your room, what other furniture it contains, and what your need are.
Generally floating is the best method, but to detail how to do it we’d have to see your page.
I know, but I mentioned earlier that you could use floats or relative/absolute positioning. That’s a very general answer, though, and can’t really be improved upon without knowing the circumstances of the div you want to position.
You said you had already floated it, so obviously this tip is not enough of a guide. Thus, I was trying to prompt you to give more information so that a more useful answer could be offered.