Click here to Skip to main content
15,937,127 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using C#,asp.net,VS 2005

I have used master page1 ...

I have a aspx page which has a master page1(linked to master page 1) with 2 contents(content 1 and content 2)

content1 contains buttons that is at top left corner and content 2 is at the right side of content 1..

Now my problem is when the content of content 2 increases the content 1 also moves along with that..

I want content 1 to be at 1 stationary place...i.e., top left corner...

Any solution please

regards
karan
Posted
Updated 21-May-11 2:11am

If you use CSS to specify the size of your content, then it should stay that size. If you don't specify a size, the browser will try it's best to follow your (vague) instructions. It would help if you posted some code.
 
Share this answer
 
Comments
karan joshua 21-May-11 9:12am    
<asp:Content ID="Content1" ContentPlaceHolderID="ButtonContentPlaceHolder" Runat="Server">
<br />
<table border="3" style="border-color:Teal">
<tr>
<td>
<asp:Button ID="AddStudyButton" runat="server" Font-Bold="True" Font-Size="Large"
ForeColor="Blue" OnClick="AddStudyButton_Click" Text="Add Study" Width="119px" /><br />
<br />
<asp:Button ID="EditStudyButton" runat="server" Font-Bold="True" Font-Size="Large"
ForeColor="Blue" Text="Edit Study" Width="119px" OnClick="EditStudyButton_Click" /><br />
<br />
<asp:Button ID="DeletestudyButton" runat="server" Font-Bold="True" Font-Size="Large"
ForeColor="Blue" Text="Delete" Width="119px" OnClick="DeletestudyButton_Click" ToolTip="click here to delete study..." /><br />
<br />
<asp:Button ID="ViewStudyButton" runat="server" Font-Bold="True" Font-Size="Large"
ForeColor="Blue" Text="View Study" Width="119px" OnClick="ViewStudyButton_Click" /><br />
<br />
<asp:Button ID="HelpButton" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="Blue"
Text="Help" Width="119px" OnClick="HelpButton_Click" /><br />
<br />
<asp:Button ID="AboutUsButton" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="Blue"
Text="About Us" Width="119px" OnClick="AboutUsButton_Click" /><br />
<br />
</td>
</tr>
</table>
As CG said use the CSS to specify the size of your content. So please post your code what you have build for this then we will guide you where you were struck up.
 
Share this answer
 
v2
Comments
karan joshua 21-May-11 9:12am    
<asp:Content ID="Content1" ContentPlaceHolderID="ButtonContentPlaceHolder" Runat="Server">
<br />
<table border="3" style="border-color:Teal">
<tr>
<td>
<asp:Button ID="AddStudyButton" runat="server" Font-Bold="True" Font-Size="Large"
ForeColor="Blue" OnClick="AddStudyButton_Click" Text="Add Study" Width="119px" /><br />
<br />
<asp:Button ID="EditStudyButton" runat="server" Font-Bold="True" Font-Size="Large"
ForeColor="Blue" Text="Edit Study" Width="119px" OnClick="EditStudyButton_Click" /><br />
<br />
<asp:Button ID="DeletestudyButton" runat="server" Font-Bold="True" Font-Size="Large"
ForeColor="Blue" Text="Delete" Width="119px" OnClick="DeletestudyButton_Click" ToolTip="click here to delete study..." /><br />
<br />
<asp:Button ID="ViewStudyButton" runat="server" Font-Bold="True" Font-Size="Large"
ForeColor="Blue" Text="View Study" Width="119px" OnClick="ViewStudyButton_Click" /><br />
<br />
<asp:Button ID="HelpButton" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="Blue"
Text="Help" Width="119px" OnClick="HelpButton_Click" /><br />
<br />
<asp:Button ID="AboutUsButton" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="Blue"
Text="About Us" Width="119px" OnClick="AboutUsButton_Click" /><br />
<br />
</td>
</tr>
</table>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900