Click here to Skip to main content
15,913,055 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear all
i m use ajax text editor
where user user enter data and when click button then
show a label
like this
C#
label.text=editor.content;

now problem is this
i want to show data in limited width
mean 500px
but if user enter 700px width then line not breaking
and data show in 700px width what can i do
pls help me
Posted
Updated 24-Aug-11 18:38pm
v2
Comments
Al Moje 24-Aug-11 22:03pm    
Try to check your defined css. Maybe the complex is their...

1 solution

.CSS

CSS
.FixedWidthLabel
{
   width:500px;
   overfolw:auto;
   max-width: 597px;
   display:block;
}


.aspx
ASP.NET
<div class="FixedWidthLabel">
    <asp:label id="label" runat="server" xmlns:asp="#unknown">
</asp:label></div>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900