Link to home
Start Free TrialLog in
Avatar of TrialUser
TrialUserFlag for Afghanistan

asked on

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>
Avatar of strickdd
strickdd
Flag of United States of America image

<td>
                    <span style="margin-left:10px;"><asp:Label ID="lblMsg" runat="server" ForeColor="Red" Font-Size="14px" Font-Bold="true" ></asp:Label></span>
                </td>
Avatar of TrialUser

ASKER

that doesnt work
ASKER CERTIFIED SOLUTION
Avatar of strickdd
strickdd
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hi,

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