s1yman Posted August 20, 2008 Share Posted August 20, 2008 Hi all, Does anyone know if it is possible to have input type="text" that looks like the text area (it HAS to be an input tag)? I tried stretching it using style="height:100px;" but that just created white space under it couldn't type there, was the same. I just need something bigger that you can see your text in after you have typed a lot. Any ideas? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Dada78 Posted August 20, 2008 Share Posted August 20, 2008 <textarea>YOUR TEXT HERE</textarea> Make sure you add your own attributes. Or if you want to waste time creating a class for one single element since some are so big on using CSS for everything, you can do it that way too. Quote Link to comment Share on other sites More sharing options...
akitchin Posted August 20, 2008 Share Posted August 20, 2008 unfortunately, an input element is for one-liners. one option is to use javascript to echo the value of the input element beside it, which allows them to see what they've typed even if the input element is only one line. otherwise you're forced to use a textarea. Quote Link to comment Share on other sites More sharing options...
s1yman Posted August 20, 2008 Author Share Posted August 20, 2008 ok, good idea though .. thanks matey Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.