Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/04/2011, 17:33
Avatar de YeisonSoto
YeisonSoto
 
Fecha de Ingreso: enero-2011
Ubicación: Cali, Colombia, Colombia
Mensajes: 116
Antigüedad: 13 años, 2 meses
Puntos: 4
Respuesta: Size Background

Mira este codigo, amigo....


Código HTML:
<html>
<body>

<style type="text/css">
#caja { position: absolute;
left: 0;
top: 0;
height: 100%;
width: 100%;
}
#caja img { width: 100%;
height: 100%;
}
.texto { color: #f00;
font-size: 30px;
position: relative;
}
</style>

<body>
<div id="caja"><img src="../img/270650_hello_my_friend.jpg" alt="Imagen de un apretón de manos, un blanco y un negro"></div>

<div class="texto">El contenido quedará sobre la
capa de la imagen</div>

</body>
</html>