Well you just put all this stuff inside an outer div and just give styling to that outer div. The inner content would remain as it is as everything is relative.
They would remain the same, as you were using before. you dont have to change them because they are inside the div and you are using relative positioning.
nijhawan.sau...
All-Star
16394 Points
3170 Posts
Re: controls are out of alignment when debugged!
May 01, 2012 12:21 PM|LINK
Well you just put all this stuff inside an outer div and just give styling to that outer div. The inner content would remain as it is as everything is relative.
achuthan1988
Member
53 Points
159 Posts
Re: controls are out of alignment when debugged!
May 02, 2012 01:45 AM|LINK
can you tell me how to give styling for the div? Are you saying that there is no need to give a style for the textboxes or other respective controls?
nijhawan.sau...
All-Star
16394 Points
3170 Posts
Re: controls are out of alignment when debugged!
May 02, 2012 06:12 AM|LINK
<div id="MainLeftDiv"> .. .. </div> .MainLeftDiv{ float:left; width:40%; height:500px; }achuthan1988
Member
53 Points
159 Posts
Re: controls are out of alignment when debugged!
May 02, 2012 07:01 AM|LINK
you have applied CSS for the div . But what about the other elements like textboxes,labels etc?
nijhawan.sau...
All-Star
16394 Points
3170 Posts
Re: controls are out of alignment when debugged!
May 02, 2012 07:10 AM|LINK
They would remain the same, as you were using before. you dont have to change them because they are inside the div and you are using relative positioning.
achuthan1988
Member
53 Points
159 Posts
Re: controls are out of alignment when debugged!
May 02, 2012 10:56 AM|LINK
Should i put the div at the very top ,i.e. outside the content tag. When i did that there was an error ...something regarding the master page.