You are here: <center> and Style=Position:absolute « HTML « IT news, forums, messages
<center> and Style=Position:absolute

Posted by jobs on 08/15/07 15:38

This might be an ASP.NET question.

I have a simple login page with roughly a 300px x 300px image behind
the asp.net login control. I need the login control to land in the
middle of the image. I want both the image and the login controlrol to
always be in the center of the page. How can I do this?

I use position:absolute to get the asp.net login control on top of
the image, but then when the IE window size is changed (by the user)
the login control does not center. Here's my markup code:



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

<center>


<div>
<img src="App_Themes/Retailer/images/
retaillogin.GIF" />

<asp:Login ID="Login" runat="server"
DestinationPageUrl="~/Main/Default.aspx"
Style="position: absolute; left: 278px; top:
188px" Height="152px" Width="327px">
</
asp:Login>
<asp:Button ID="RecoverPassword" runat="server"
Text="Recover Password"

PostBackUrl="RecoverPass.aspx" Style="left: 286px; position:
absolute; top: 319px"
Width="100px" /
>

</
div>
</
center>
</form>

Thanks for any help or information.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация