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 4056562
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:50:34+00:00 2026-05-20T14:50:34+00:00

I was using a LinkButton and it had like lot of text in it

  • 0

I was using a LinkButton and it had like lot of text in it which made it quite long. This was fine as the LinkButton wrapped the text onto the next line when it ran out of room.

I then changed this to a standard asp:Button and the problem is the text doesn’t wrap the button just becomes as long as the text. This is a problem because it forces the container it is within to be longer than I intended.

Is there a way to make the text of the button wrap?

  • 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-20T14:50:35+00:00Added an answer on May 20, 2026 at 2:50 pm

    You can do that by setting a width and the CSS property white-space: normal:

    This goes in your <head>

    <style type="text/css">
        .wrap { white-space: normal; width: 100px; }
    </style>
    

    And your button:

    <asp:Button ID="btn" runat="server" Text="some really breally long text that I want to wrap" CssClass="wrap" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have user control which looks like <div> <asp:LinkButton ID=btnShow runat=server Text=Select CausesValidation=false />
I am using RadGrid And I have LinkButton in its ItemTemplate. Onclick of this
I'm using an asp:LinkButton. The text underlines upon hovering over it. However I want
I'm using a lot of LinkButtons in my web application with text and images
Using preview 4 of ASP.NET MVC Code like: <%= Html.CheckBox( myCheckBox, Click Here, True,
I am using a LinkButton to trigger an email template. When the LinkButton is
I am using ListView and i want to find the LinkButton using JQuery how
I want a hyperlink that looks like a standard button. I have tried using
I'm using <mx:LinkButton label=www.google.com click=navigateToURL(new URLRequest(event.currentTarget.label.toString())) /> to open a browser window to display
Using ASP.NET 3.5, you can create a LinkButton then define content inside of it.

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.