i want a text box with a scroll bar so i used the textField in dreamweaver like so:
http://www.pages.drexel.edu/~abl27/
however users have the option of typing stuff into that box which i dont want. how can i go about getting a text box that looks the exact same but without the user input stuff??
You could place your text within a DIV and then use CSS to format this DIV
so in the body
<div class="myDiv">
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt
ut labore et dolore magna aliquyam erat, sed diam voluptua.
</div>
and within your CSS:
.myDiv {
height: 100px;
width: 100px;
border: 1px solid;
overflow: auto;
}
The overflow: auto will make sure that a scrollbar is shown if the text doesn’t fit within the DIV. If it does fit, the scrollbars are not shown.