# TextField problem

**URL:** https://forum.kirupa.com/t/textfield-problem/59588
**Category:** flash
**Created:** [August 2, 2004, 8:11am UTC](https://forum.kirupa.com/t/textfield-problem/59588 "2004-08-02T08:11:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![histwinsister](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/histwinsister/32/380_2.png) [@histwinsister](https://forum.kirupa.com/u/histwinsister)
#### Post date: [August 2, 2004, 8:11am UTC](https://forum.kirupa.com/t/textfield-problem/59588/1 "2004-08-02T08:11:48Z")

</div>

i want a text box with a scroll bar so i used the textField in dreamweaver like so:  
[http://www.pages.drexel.edu/~abl27/](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??

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 2, 2004, 10:25am UTC](https://forum.kirupa.com/t/textfield-problem/59588/2 "2004-08-02T10:25:02Z")

</div>

You could place your text within a DIV and then use CSS to format this DIV

so in the body

```php

<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:

```php

.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.
