HTML: How to create a DIV with only vertical scroll-bar to show long paragraphs on a webpage?
Posted
by Awan
on Stack Overflow
See other posts from Stack Overflow
or by Awan
Published on 2010-04-02T11:04:35Z
Indexed on
2010/04/02
11:13 UTC
Read the original article
Hit count: 691
I want to show terms and condition note on my website. I dont want to use text field and also dont want to use my whole page. I just want to display my text in selected area and want to use only vertical scroll-bar to go down and read all text.
Currently I am using this code:
<div style="width:10;height:10;overflow:scroll" >
text text text text text text text text text
text text text text text text text text text
text text text text text text text text text
text text text text text text text text text
text text text text text text text text text
text text text text text text text text text
text text text text text text text text text
text text text text text text text text text
</div>
It is not fixing the width and height and spread until the all text appears. Second it is showing horizontal scroll-bar and I don't want to show it.
Any Idea ?
Thanks
© Stack Overflow or respective owner