DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 15 Aug 2007 08:36:28 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    jobs
          2    Collin Chung


<center> and Style Position:Absolute with changing window Size?   
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>
Date:Wed, 15 Aug 2007 08:36:28 -0700   Author:  

Re: <center> and Style Position:Absolute with changing window Size?   
On Aug 15, 11:36 pm, jobs  wrote:

>  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>



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
Date:Thu, 16 Aug 2007 03:30:03 -0000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us