Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 28, 2012 01:00 PM by CruzerB
Member
8 Points
348 Posts
Nov 28, 2012 12:01 PM|LINK
Hi,
I have the following label which starts at the beginning of the page - I want to move it abit towards the right how can I achive that?
<p> <asp:Label ID="Lblnote" runat="server" Width = "500px" Font-Bold= "true" Text = "Your account has been successfully created."></asp:Label> </p>
Thanks
Contributor
4646 Points
1172 Posts
Nov 28, 2012 12:04 PM|LINK
Use a table to achieve this
<center> <asp:Table ID="Table1" runat="server"> <asp:TableRow> <asp:TableCell> <asp:Label ID="Heading1" runat="server" Font-Size="XX-Large" Text="" ForeColor="DarkBlue"> </asp:Label> </asp:TableCell> <asp:TableCell> <asp:Panel ID="pnlMain" runat="server" Height="125px" HorizontalAlign="Right" Width="1200px"> </asp:Panel> </asp:TableCell> <asp:TableCell> <asp:Label ID="Label4" runat="server" Text="Name" Font-Bold="true" Font-Size="XX-Large" Font-Underline="true" Style="z-index: 103;"> </asp:Label> </asp:TableCell> </asp:TableRow> </asp:Table> </center>
Star
7983 Points
2099 Posts
Nov 28, 2012 12:07 PM|LINK
<p style="padding-left:300px"> <asp:Label ID="Lblnote" runat="server" Width = "500px" Font-Bold= "true" Text = "Your account has been successfully created."></asp:Label> </p>
You can adjest the padding-left range only
Good luck......
747 Points
258 Posts
Nov 28, 2012 12:08 PM|LINK
Hello dr223,
Just add style="float: right;"
<p>
<asp:Label ID="Lblnote" runat="server" Width = "500px" style="float: right;" Font-Bold= "true" Text = "Your account has been successfully created."></asp:Label> </p>
All-Star
35826 Points
7317 Posts
Nov 28, 2012 12:50 PM|LINK
5399 Points
1098 Posts
Nov 28, 2012 01:00 PM|LINK
You can simply add style="margin-left:10px;" to the label control.
dr223
Member
8 Points
348 Posts
margin setting
Nov 28, 2012 12:01 PM|LINK
Hi,
I have the following label which starts at the beginning of the page - I want to move it abit towards the right how can I achive that?
<p> <asp:Label ID="Lblnote" runat="server" Width = "500px" Font-Bold= "true" Text = "Your account has been successfully created."></asp:Label> </p>Thanks
chandu123
Contributor
4646 Points
1172 Posts
Re: margin setting
Nov 28, 2012 12:04 PM|LINK
Use a table to achieve this
<center> <asp:Table ID="Table1" runat="server"> <asp:TableRow> <asp:TableCell> <asp:Label ID="Heading1" runat="server" Font-Size="XX-Large" Text="" ForeColor="DarkBlue"> </asp:Label> </asp:TableCell> <asp:TableCell> <asp:Panel ID="pnlMain" runat="server" Height="125px" HorizontalAlign="Right" Width="1200px"> </asp:Panel> </asp:TableCell> <asp:TableCell> <asp:Label ID="Label4" runat="server" Text="Name" Font-Bold="true" Font-Size="XX-Large" Font-Underline="true" Style="z-index: 103;"> </asp:Label> </asp:TableCell> </asp:TableRow> </asp:Table> </center>Chandrasekhar (MCTS) .NET framework 3.5, ASP.NET Applications
If my ANSWER helps you in solving your problem MARK IT AS ANSWER
RameshRajend...
Star
7983 Points
2099 Posts
Re: margin setting
Nov 28, 2012 12:07 PM|LINK
<p style="padding-left:300px">
<asp:Label ID="Lblnote" runat="server" Width = "500px" Font-Bold= "true" Text = "Your account has been successfully created."></asp:Label>
</p>
You can adjest the padding-left range only
Good luck......
Nirav Golani
Member
747 Points
258 Posts
Re: margin setting
Nov 28, 2012 12:08 PM|LINK
Hello dr223,
Just add style="float: right;"
<p>
Nirav Golani.
oned_gk
All-Star
35826 Points
7317 Posts
Re: margin setting
Nov 28, 2012 12:50 PM|LINK
Suwandi - Non Graduate Programmer
CruzerB
Contributor
5399 Points
1098 Posts
Re: margin setting
Nov 28, 2012 01:00 PM|LINK
Hi,
You can simply add style="margin-left:10px;" to the label control.
My Technical Blog