Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 327
  • Last Modified:

label margin is lost when text appeas in th second line

When the text for lblMsg is long and flows to the next line, then it is not applying the margin-left:10 on line 2. How can I align the text for lblMsg on line 1 and line 2 . thanks
  <td>
                    <asp:Label ID="lblMsg" runat="server" ForeColor="Red" Font-Size="14px" Font-Bold="true" style="margin-left:10px;"></asp:Label>
                </td>
0
TrialUser
Asked:
TrialUser
  • 3
  • 2
1 Solution
 
strickddCommented:
<td>
                    <span style="margin-left:10px;"><asp:Label ID="lblMsg" runat="server" ForeColor="Red" Font-Size="14px" Font-Bold="true" ></asp:Label></span>
                </td>
0
 
TrialUserAuthor Commented:
that doesnt work
0
 
strickddCommented:
<td>
                    <span style="margin-left:10px; display: inline-block"><asp:Label ID="lblMsg" runat="server" ForeColor="Red" Font-Size="14px" Font-Bold="true" ></asp:Label></span>
                </td>
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
kovilpattiBaluCommented:
hi,

set width for <TD> and set label property "Wrap = true;"
0
 
kovilpattiBaluCommented:
set width to label also..
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now