Solved

label won'ty wrap text in a table cell

Posted on 2009-07-07
2
717 Views
Last Modified: 2012-05-07
Hello,

I have a label placed in a table cell that is dynamically generated. When the code is run, the text jut stacks on top of itself. I don't know what to do. Please help. I'm attaching an image which shows the result. Thanks for your help.
If SDR.Item("Pet_Comments") IsNot DBNull.Value Then

                    .pet.Text = SDR.Item("Pet_Comments")

                    .pet_comments.Visible = True

                   

                End If
 
 
 

<td colspan="2" id="pet_comments" runat="server" style="width:100%"  >Pet

                                    Comments:<asp:Label ID="pet" runat="server" ForeColor="#314a84" style="width:100%" /></td>

                                </tr>

                            </table></td>

Open in new window

text.jpg
0
Comment
Question by:ad3408
2 Comments
 
LVL 23

Expert Comment

by:adilkhan
Comment Utility
try removing id="pet_comments" from TD and see what happens, seems like a CSS problem.
0
 
LVL 8

Accepted Solution

by:
MrAgile earned 500 total points
Comment Utility
try this:  

Comments:<asp:Label ID="pet" runat="server" ForeColor="#314a84" style="width:100%;white-space:nowrap;" />
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Javascript newbie 5 38
Put text in a picture ASP.NET C# 2 35
What .NET website keeps me current? 9 28
Jquery autocomplete 10 19
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now