Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

<center> and Style Position:Absolute with changing window Size?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jobs - 15 Aug 2007 16:36 GMT
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>
Collin Chung - 16 Aug 2007 04:30 GMT
>  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
[quoted text clipped - 33 lines]
> center>
>     </form>

Hi!

Here is a site on centering divs which might be helpful
http://locusmeus.com/html-css/centeringpage.html

Picked it up from this thread
http://www.thescripts.com/forum/thread100767.html

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.