Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/05/2010, 14:08
Avatar de neodani
neodani
 
Fecha de Ingreso: marzo-2007
Mensajes: 1.811
Antigüedad: 17 años, 1 mes
Puntos: 20
Respuesta: Como poner texto debajo de la imagen

Conseguido!

http://fdw.neodani.com/fotos_en_linea/ejemplo2.php

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <title>Fotos en linea</title>
  5. <style type="text/css">
  6. body {
  7.     background:#fff;
  8.     font-family:Verdana, Arial, Helvetica, sans-serif;
  9.     color:black;
  10. }
  11. #intro-web{
  12.     width: 900px;
  13.     height:135px;
  14. }
  15. #intro-web ul{
  16.     padding: 0px;
  17.     margin: 30px 10px;
  18.     list-style: none;
  19.     font-size: 14px;
  20.     font-weight: bold;
  21. }
  22. #intro-web ul li{
  23.     display: inline;
  24.     width:100px;
  25. }
  26. .foto {float: left; text-align: center; }
  27. .foto img {display: block;margin:0 20px;}
  28. .foto:hover {color:red;}
  29. </head>
  30.  
  31. <div id="intro-web">
  32.     <ul>
  33.         <li><div class="foto"><img title="Business" src="recuadro.png"/>Business</div></li>
  34.         <li><div class="foto"><img title="Education" src="recuadro.png"/>Education</div></li>
  35.         <li><div class="foto"><img title="Sport" src="recuadro.png"/>Sport</div></li>
  36.         <li><div class="foto"><img title="Health Care" src="recuadro.png"/>Health Care</div></li>
  37.     </ul>
  38. </div>
  39. </body>
  40.  
  41. </html>

Saludos!