Jordanweb
05-22-2005, 02:00 AM
Is there anyway to get a scrolling textbox that is read only? so the person cant modify wats in it?
|
Click to See Complete Forum and Search --> : Text Box Jordanweb 05-22-2005, 02:00 AM Is there anyway to get a scrolling textbox that is read only? so the person cant modify wats in it? Mr J 05-22-2005, 03:32 AM Try adding readonly to the textbox Charles 05-22-2005, 06:10 AM <textarea readonly>Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem.</textarea> <div style="border:solid 1px #000; height:2em; overflow:auto; width:11em">Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum.</div> jmaresca2005 05-22-2005, 08:28 PM <textarea readonly>text here</textarea> <div style="border:solid 3px #000; height:3em; overflow:auto; width:12em">est here</div> NogDog 05-23-2005, 12:08 AM Use the textarea option if it is part of a form containing read-only data to be submitted as part of that form. Otherwise use the styled div option using "overflow:" with either the "auto" or "scroll" option (more info at http://www.w3.org/TR/CSS21/visufx.html#overflow). Charles 05-23-2005, 06:05 AM Use the textarea option if it is part of a form containing read-only data to be submitted as part of that form. Why then is it valid HTML to do otherwise? NogDog 05-23-2005, 11:59 AM Why then is it valid HTML to do otherwise? To clarify, I'm not so much concerned with whether you can use a textarea outside a form. I guess I just feel it's more semantically meaningful if you don't. The specification of the textarea element is in section 17 of the 4.01 spec., which happens to be entitled "Forms". But I ain't gonna lose any sleep if anyone uses it outside a form, though I see no reason to do so. :) Jordanweb 05-23-2005, 10:14 PM thanks guys webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |