-----Original Message-----
From: Jeff Garza [mailto:[EMAIL PROTECTED]
Sent: Friday, April 23, 2004 9:51 AM
To: CF-Talk
Subject: RE: Uneditable textarea box
All you would need to do for this is adjust your height attribute until it
matches a standard text input box.
Something like the following might work. Though it's far from a perfect
solution.
<div style="overflow: auto; border: 1px solid #151515; height: 24; width:
150;"></div>
I'm not sure what the "default" height is for a text box, so you'll have to
experiment. You should probably set the scroll attribute to "auto" so that
there won't be a horizontal scroll bar if it's not needed. One thing this
won't do is wrap the text. You'd probably need some DHTML behind the div to
check the line length, etc.
Jeff Garza
_____
From: Robert Orlini [mailto:[EMAIL PROTECTED]
Sent: Friday, April 23, 2004 6:25 AM
To: CF-Talk
Subject: RE: Uneditable textarea box
How would the code look if it was just a one line text box as opposed to a
textarea box?
Robert O.
-----Original Message-----
From: Jeff Garza [mailto:[EMAIL PROTECTED]
Sent: Friday, April 23, 2004 9:23 AM
To: CF-Talk
Subject: RE: Uneditable textarea box
Try using a DIV with a stylesheet behind it like the following:
<style>
.liketextarea{
overflow: scroll;
border: 1px solid #151515;
height: 200;
width: 350;
}
</style>
<div class="liketextarea"></div>
This should give you a textarea-like object that you can't type into.
Jeff Garza
_____
From: MILAN MUSHRAN [mailto:[EMAIL PROTECTED]
Sent: Friday, April 23, 2004 5:45 AM
To: CF-Talk
Subject: Uneditable textarea box
Hi guys,
I need a kind of uneditable textarea box. It may not be a textarea box, but
even if it looks like one, that's fine. Also, if the text is greater then
the size of the box, scroll bars should appear.
This is to let the user view the page info using that box alone.
Thanks a lot,
Milan
_____
_____
_____
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

