Ver Mensaje Individual
  #17 (permalink)  
Antiguo 12/06/2009, 11:13
kseso?
Colaborador
 
Fecha de Ingreso: junio-2007
Mensajes: 5.798
Antigüedad: 16 años, 11 meses
Puntos: 539
Respuesta: imagen sobre otra imagen con css?

Mira a ver si este código pone tu avatar sobre el texto y una imagen:
Código html:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es-es">
  3. <title>play sobre imagen</title>
  4. <style type="text/css">
  5. * {margin:0; padding:0;}
  6. #derecha{
  7. background: #900;
  8. position:relative;
  9. width:383px;
  10. height:246px;
  11. float:left;
  12. margin-right:5px;}
  13.  
  14. #derecha2 {
  15. background: url(http://profile.ak.facebook.com/v222/238/8/t1668407121_3819.jpg) repeat;
  16. width:383px;
  17. height:246px;
  18. position:absolute;
  19. top:0;
  20. left:0;
  21. opacity: .4;/*añadir filter alpha para ie*/
  22. }
  23. p {color: #fff;}
  24. </head>
  25. <div id="derecha"><p>como no tengo las imágenes que tu pones, pongo algo de a a a a texto para que veas el efecto</p>
  26.                   <img src="http://static.forosdelweb.com/fdwtheme/logo-reflejo.png">
  27.                   <div id="derecha2">
  28.                   </div>
  29.                   </div>
  30. </body>
  31. </html>
Probado en FF, chrome, opera, ie7 (opacity no lo entiende)

Un saludo
__________________
Por una web con mucho estilo
+++ CUENTA ABANDONADA. ¿la quieres? +++