Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
101
rated 0 times [  107] [ 6]  / answers: 1 / hits: 15365  / 12 Years ago, fri, may 25, 2012, 12:00:00
More From » objective-c

 Answers
18

I know this may not be the best way but it works.



Here is what I did -



#scrollableDiv {
position:fixed;
top:50px;
width:300px;
height:500px;
word-wrap: break-word;
overflow-y: scroll;
}

document.getElementById(scrollableDiv).innerHTML = longText;
document.getElementById(scrollableDiv).scrollTop = 0;

[#85342] Thursday, May 24, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kaya

Total Points: 531
Total Questions: 107
Total Answers: 100

Location: United States Minor Outlying Island
Member since Sat, May 28, 2022
2 Years ago
;