Regarding web page alignment

Posted by Lakn2 under Regular Expressions on 7/7/2011 | Points: 10 | Views : 3239 | Status : [Member] | Replies : 6
Hi,

i have one master page and 15 aspx pages. i want to show all my content in center and it should work in all browsers.

Please give me any suggessions.

Thanks&Regards
LakshmiNarayana Nalluri.



Responses

Posted by: Ndebata on: 7/7/2011 [Member] Starter | Points: 25

Up
0
Down
Try to add a table with width 100%
within that add a tr then a td with align="center"
Then add a placeholder to this td.



Lakn2, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lakn2 on: 7/7/2011 [Member] Starter | Points: 25

Up
0
Down
my master page source code is
but it is not showing child pages in center

<form id="form1" runat="server">

<div >
<table width ="100%" align="center" >
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">



</asp:ContentPlaceHolder>
</table>
</div>
</form>


Thanks&Regards
LakshmiNarayana Nalluri.

Lakn2, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ndebata on: 7/7/2011 [Member] Starter | Points: 25

Up
0
Down
You did not write tr and td :)

<form id="form1" runat="server">

<div>
<table width="100%">
<tr>
<td align="center">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
</div>
</form>


Lakn2, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lakn2 on: 7/7/2011 [Member] Starter | Points: 25

Up
0
Down
hi now working fine thank you for your answer can you check this below style

<style type ="text/css" >
.centered
{
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 80%;
height: 80%;
margin: auto;
background-color:Aqua ;
color: white;
}

</style>

and i am calling this in div class="centered" it is also working fine but when i am clicking any control in child page it goes normal position
what is the problem in above style.

Thanks&Regards
LakshmiNarayana Nalluri.

Lakn2, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lakn2 on: 7/19/2011 [Member] Starter | Points: 25

Up
0
Down
hi Ndebata ,

Now my webpage is aligned to center but i had given positio=absolute to all controls ,so all controls are displaying unformatly. can you tell me how can i arrange
all controls at a time to center .

Thanks&Regards
LakshmiNarayana Nalluri.

Lakn2, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Neha-kapoor on: 7/23/2011 [Member] Starter | Points: 25

Up
0
Down
Hallo narayan can u help
pls see this link
http://www.dotnetfunda.com/forums/thread5516-how-can-show-webpages.aspx

thanks

Lakn2, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response