Ver Mensaje Individual
  #1 (permalink)  
Antiguo 31/07/2014, 12:57
sandragh27
 
Fecha de Ingreso: junio-2014
Mensajes: 36
Antigüedad: 9 años, 10 meses
Puntos: 0
problema reduciendo ventana, se mueve todoucir la ventana

Hola a todos, estoy haciendo el diseño de la pantalla de inicio de una aplicacion web y me encuentro con un problema, al cambiar el tamaño de la pantalla se me mueve el form del nombre de usuario y contraseña y el fondo tambien.

Alguien podria ayudarme? Aqui les dejo el codigo:

Código HTML:
Ver original
  1. <!DOCTYPE html>
  2.     <head>
  3.        
  4.         <title>Sistema</title>
  5.         <style type="text/css">
  6.             body {  background:url(webb.jpg)no-repeat center center fixed;
  7.                     background-size: 1400px 600px;
  8.                     -moz-background-size: 1400px 600px;
  9.                     -webkit-background-size: 1400px 700px;
  10.                     }
  11.             form {  position: absolute;
  12.                     margin-bottom: 400px;
  13.                     margin-top:315px;
  14.                     margin-right: 600px;
  15.                     margin-left: 420px;
  16.                     text-align: right;
  17.                     font-family: sans-serif;
  18.                     font-size:15px;
  19.                    }
  20.     </style>
  21.     </head>
  22.     <body>
  23.         <form name="formLogin" method="post" action="login.jsp" >
  24.             <label id="nickname"> Nombre de Usuario:  </label>
  25.                 <input type="text" name="nickname" id="nickname" maxlength="15"/> <br/>
  26.             <label id="contrasena"> Contrase&ntildea:  </label>
  27.                <input type="password" name="contrasena" id="contrasena" maxlength="15"/> <br/>
  28.            
  29.            <input type="submit" name="Ingresar" value="Ingresar" />
  30.  
  31.        </form>
  32.  
  33.    </body>
  34. </html>