Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/05/2009, 11:34
Avatar de pcarvajal
pcarvajal
 
Fecha de Ingreso: enero-2002
Mensajes: 701
Antigüedad: 22 años, 3 meses
Puntos: 8
Respuesta: css warning box

Cita:
Si usas una posición absoluta en #warningbox deberías indicarle coordenadas de posición, como left: 0; top: 0; o lo que necesites.
perfecto, muchas gracias, era precisamente el empujoncito que necesitaba.

Aquí dejo les dejo el código funcionando en FF y IE por si a alguien le es útil.
Cita:
<html>
<head>
<style type="text/css">
/*BEGIN WARNING BOX*/
body {
margin: 0px;
padding: 0px;
}
#warningbox a, #warningbox a:link, #warningbox a:visited, #warningbox a:active {
display: block;
color: #000;
background: #FFFFFF;
text-decoration: none;
}
#warningbox a:hover {
color: #000000;
background: #FFFFFF;
text-decoration: underline;
}
#warningbox {
position: absolute;
background: #FFFFFF;
width:100%;
height:30px;
left: 0;
top: 0;
}
#warningbox table{
font-size:10px;
font-family: Tahoma, Trebuchet MS, Georgia,Verdana, Arial, Helvetica, sans-serif;
color: #000000;
}
/*END WARNING BOX*/
</style>
</head>
<body bgcolor="black" text="white">
Y aquí el HTML
<div id="warningbox"><table border="1"><tr><td align="center"><a href="#">aqui_va_un_enlace</a></td><td align="right"><img src="foto.gif"></td></tr></table></div>
</body>
</html>
Saludos!