I am trying to move the controls from a scroll box, from the default vertical position on the right side of the box, somewhere below it. My code so far looks like this:
<div class="scroll_box">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam eleifend hendrerit magna, ac tristique nulla vestibulum id. Aenean aliquam vehicula nunc sit amet convallis. Mauris sit amet lectus a metus accumsan dignissim. Integer pharetra quam nec lectus mattis lobortis. Aliquam id risus vel ante ornare rhoncus ac quis lacus. Duis dignissim urna sed leo dictum fermentum. Vivamus id orci odio, in congue quam.
</div>
.scroll_box {
position:absolute;
width: 400px;
height: 100px;
margin: 0px;
overflow:auto;
border: solid blue 1px;
}
Below there screenshot of what I am trying to achieve.
How can i do this ?
LE:
To be more precise, I am trying to use those red arrows to control the scroll. Basically if the user is pressing the "UP" arrow, the text should scroll up in the scroll box and similar for the "DOWN" arrow.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…