if I have 4 objects vertically inline with each other.
ie Label1, Textbox1, Label2, Textbox2
I am satisfied with the positioning of Label1, Textbox1 & Label2.
but I want to move Textbox2 to the Right a bit WITHOUT affecting anything else, ie a LEFT MARGIN will not push the other 3 objects to the left as well.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
35 Points
375 Posts
Using Margins, Really annoying but probably easy.
Sep 18, 2019 03:25 PM|masterdineen|LINK
if I have 4 objects vertically inline with each other.
ie Label1, Textbox1, Label2, Textbox2
I am satisfied with the positioning of Label1, Textbox1 & Label2.
but I want to move Textbox2 to the Right a bit WITHOUT affecting anything else, ie a LEFT MARGIN will not push the other 3 objects to the left as well.
I just want Label2 to move to the right a bit.
How do I do that.??
All-Star
52971 Points
23574 Posts
Re: Using Margins, Really annoying but probably easy.
Sep 18, 2019 03:26 PM|mgebhard|LINK
We cannot see your markup.
Member
35 Points
375 Posts
Re: Using Margins, Really annoying but probably easy.
Sep 18, 2019 03:46 PM|masterdineen|LINK
here we go
See markup below.
All I want to do is move TextBox1 to the right a bit Say 50px, without affecting anything else whilst keeping everything else inline with each other.
I try to do with with margin, but whatever is to the left or right ( Depending on the margin I use ) everything is push away from each other.
see markup below. Regard Rob
Contributor
3370 Points
1409 Posts
Re: Using Margins, Really annoying but probably easy.
Sep 19, 2019 03:11 AM|samwu|LINK
Hi masterdineen,
To move the TextBox1 to the right you need to use the margin-left property.
Note: If you change the position of Textbox1, td will change relatively. You can set margin-left=50px for Label1 to restore the original style.
The result:
Best regards,
Sam