Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 355135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:59:23+00:00 2026-05-12T11:59:23+00:00

I have a multiline textbox : <asp:TextBox ID=txtBody runat=server TextMode=MultiLine Rows=10 Width=95% /> In

  • 0

I have a multiline textbox :

<asp:TextBox ID="txtBody" runat="server"  TextMode="MultiLine" Rows="10" Width="95%" />

In ie there is a vertical scrollbar bar even if a text inside textbox doesn’t occupy 10 lines.
In firefox it does not happen, scroll bar appears only if text exceeds 10 lines.

What can be done?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T11:59:23+00:00Added an answer on May 12, 2026 at 11:59 am

    Set CSS style overflow to auto:

    <asp:TextBox ID="txtBody" runat="server" TextMode="MultiLine"
                 Rows="10" Width="95%" style="overflow:auto;" />
    

    The default behavior differs between browsers, which is why you see different behavior in IE and FF when overflow is not specified.

    To override default browser behaviour for all multiline textboxes on your page, you can add it in a style definition. Then you don’t need to include the inline style on each textbox:

    Note: Multiline TextBox is rendered using HTML tag <textarea>, so we will specify the css style for the textarea element type.

    textarea {
      overflow: auto;
    }
    <textarea id="txtBody1" rows="5">Text in 
    textbox 
    with 
    many 
    lines, 
    so that
    scrollbar 
    will 
    appear.
    </textarea>
    <textarea id="txtBody2" rows="5">Smaller text, no scrollbar.</textarea>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple asp:textbox set up like this <asp:TextBox runat=server ID=tbxWarning TextMode=MultiLine Rows=4>
I have a single asp:textbox declared as follows: <asp:TextBox ID=textBox1 class=myTB runat=server TextMode=MultiLine Font-Names=Calibri
I have an ASP TextBox with TextMode set to MultiLine. I'm having problems with
This is the code I have: <body> <form id=form1 runat=server> <div> <asp:TextBox ID=txtInsertComments CssClass=expanding
I have several <asp:TextBox TextMode=MultiLine> elements on a page. On load, I populate them
i have a asp:TextBox control on the page. i'm setting it to a TextMode=MultiLine,
I have an ASP.NET TextBox with TextMode = TextBoxMode.MultiLine that is used within an
I have an ASP.NET page with a multiline textbox called txbUserName. Then I paste
I have a MultiLine asp:Textbox (a standard html textarea for those non-asp people) that
I have a textarea in C#, please see below code: <asp:Label ID=lblQuestions runat=server CssClass=addinfo>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.