Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/02/2007, 18:20
Avatar de Mikmoro
Mikmoro
Colaborador
 
Fecha de Ingreso: octubre-2006
Ubicación: K-pax
Mensajes: 7.228
Antigüedad: 17 años, 6 meses
Puntos: 280
Re: Una pregunta seguro que muy sencilla

Hola, Miki.
A mi me da la impresión de que así es como lo quieres, pero igual estoy equivocado. No obstante, con esta referencia te será fácil cambiar lo que quieras:

Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>solicion alternativa</title>
  <style type="text/css">
body { margin: 0pt;
background-color: rgb(221, 221, 221);
}
#divGeneral { border: 1px solid rgb(153, 204, 255);
}
#divAcceso { border: 5px solid rgb(255, 255, 255);
height: 180px;
width: 400px;
margin-top: 200px;
margin-left: auto;
margin-right: auto;
font-family: Arial,Helvetica;
background-color: rgb(0, 102, 187);
position: relative;
}
#spanAcceso { color: rgb(255, 255, 255);
font-size: 24px;
font-weight: bold;
margin: 0 auto;
display: block;
position: relative;
text-align: center;
}
#txtUsuario, #txtPass { position: relative;
float: left;
cursor: pointer;
margin: 20px 0 0 30px;
}
#lblUsuario, #lblPass { position: relative;
float: left;
color: rgb(255, 255, 255);
font-weight: bold;
margin-top: 20px;
}
#lblUsuario {background-color: blue;
margin-left: 70px;
}
#lblPass { background-color: red;
margin-left: 40px;
clear: both;
}
#btnEnviar { position: relative;
cursor: pointer;
clear: both;
display: block;
margin: 0 auto;
top: 20px;
}
  </style>
</head>
<body>
<div id="divGeneral">
<div id="divAcceso"><span id="spanAcceso">A C
C E S O</span>
<label id="lblUsuario" for="txtUsuario">Usuario:</label>
<input id="txtUsuario" value="usuario" type="text" /><label
 id="lblPass" for="txtPass">Contrase&ntilde;a:</label>
<input id="txtPass" type="text" /><input
 id="btnEnviar" value=" Enviar " type="button" /></div>
</div>
</body>
</html>
Como podrás comprobar, y respondiendo a tu pregunta, los selectores se pueden agrupar simplemente separándolos por comas.

Mikel.