C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » HTML »

Multiline textbox


Posted Date: 09 Oct 2009      Posted By: nitkumr      Member Level: Bronze     Points: 1   Responses: 9




Hi,

I want a textbox which should have multiple line. Such that tab,enter operations should work

Below I have mentioned the textbox size. In this what i need to add to get the mutilined textbox?

<input type="text" style="height:350px;width:510px;margin-left:5px"/>

Thanks





Responses

Author: Sumit Kr Verma    09 Oct 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

Hi,

use

<textarea cols="5" rows="5">Sumit Kumar Verma</textarea>

Regards

Sumit Kr. Verma



Author: nitkumr    09 Oct 2009Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

Hi,

Thank you for the solution,this works fine. But for me the scroll should not appear till the mentioned size of the textarea,it should appear only when characters exceed the size.

Till the text exceeds the mentioned size it should look like an ordinary textbox.

can you help me?

Thanks



Author: Satish Kumar J    09 Oct 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

with server controls we can limit the size with HTML controls we need to use JavaScript code to limit the size you can code in net please search on google for the same.

HTH

Regards,
Satish
My Blog



Author: Sumit Kr Verma    09 Oct 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

hi,

you can use:
<textarea cols="5" rows="5" style="overflow:auto;">sumit</textarea>
for auto hide the scrollbars.

Regards
Sumit Kr. Verma



Author: Venkatesh Ellur    26 Oct 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Hi

If required you can handle everything in a CSS class and apply that class to the textarea and set overflow to auto as said by Sumit

THIS POSTING IS PROVIDED WITH NO WARRANTIES, BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT AS PER MY KNOWLEDGE, NOT TRIED IT.

Regards
--------------------------
Venkatesh Ellur
+919886417764
venkatesh.ellur@gmail.com



Author: soniya bhatia    29 Oct 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

hi

it's easy if u in dreamweaver
select textbox and click on multiline option in dreamweaver



Author: vineeth kumar    02 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

hi
just go through this link
www.w3school.com



Author: ujual    14 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

use text area


Author: abdul rahim    16 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

use below syntax
<textarea></textarea>
for more details go to www.w3schools.com



Post Reply
You must Sign In to post a response.
Next : I like to submit all html tutorials for web designing on dotnetspider how?
Previous : Flash movi not run in firefox but run in ie.
Return to Discussion Forum
Post New Message
Category: HTML

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use