Ver Mensaje Individual
  #8 (permalink)  
Antiguo 01/06/2011, 15:01
ambigus
 
Fecha de Ingreso: septiembre-2008
Mensajes: 221
Antigüedad: 15 años, 7 meses
Puntos: 1
Respuesta: ¿Cómo colocar una imagen de fondo utilizando CSS?

Muchas gracias: Ag666 por tu pronta respuesta.

Ahora te comparto mis avances:

http://extremegamex1.gofreeserve.com...dex_1.2.4.html

He avanzado un poco, sin embargo aún no logro colocarlos los dos en forma vertical.

Les dejo el código .CSS:

Código CSS:
Ver original
  1. <style type="text/css">
  2. p { color: black; font-family: Verdana; }
  3. .destacado { color: white; }
  4. ul {
  5.     list-style: none;
  6.     margin: 0;
  7.     padding: 0;
  8.     background-image: url("http://extremegamex1.gofreeserve.com/images/boton_menu_1.png");
  9.   background-repeat: no-repeat;
  10.   background-position: 3.5px 12px;
  11.   font-family: Verdana;
  12.   padding-left:  20px;
  13.   padding-right: 20px;
  14.   padding-top:  3px;
  15.   padding-bottom: 1px;
  16.   margin-top: 5px;
  17.   margin-bottom: 0px;
  18.     }
  19.  
  20. #menu1 {
  21.   clear: both;
  22.   float: left;
  23.   width: 100%;
  24.   list-style: none;
  25.   margin: 0;
  26.   padding: 0;
  27.   }
  28.    
  29. #menu1 li a {
  30.     height: 32px;
  31.     voice-family: "\"}\"";
  32.     voice-family: inherit;
  33.     height: 60px;
  34.     text-decoration: none;
  35.     display: inline;
  36.     }  
  37.    
  38. #menu1 li a:link, #menu1 li a:visited {
  39.     color: #FFF;
  40.     display: block;
  41.     padding: 15px 0 0 0px;
  42.     }  
  43.   </style>

y el HTML por si acaso:

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=iso-8859-1" />
  4. <title>Free CSS Vertical Menu Designs at exploding-boy.com</title>
  5.   <style type="text/css">
  6. p { color: black; font-family: Verdana; }
  7. .destacado { color: white; }
  8. ul {
  9.     list-style: none;
  10.     margin: 0;
  11.     padding: 0;
  12.     background-image: url("http://extremegamex1.gofreeserve.com/images/boton_menu_1.png");
  13.   background-repeat: no-repeat;
  14.   background-position: 3.5px 12px;
  15.   font-family: Verdana;
  16.   padding-left:  20px;
  17.   padding-right: 20px;
  18.   padding-top:  3px;
  19.   padding-bottom: 1px;
  20.   margin-top: 5px;
  21.   margin-bottom: 0px;
  22.     }
  23.  
  24. #menu1 {
  25.   clear: both;
  26.   float: left;
  27.   width: 100%;
  28.   list-style: none;
  29.   margin: 0;
  30.   padding: 0;
  31.   }
  32.    
  33. #menu1 li a {
  34.     height: 32px;
  35.     voice-family: "\"}\"";
  36.     voice-family: inherit;
  37.     height: 60px;
  38.     text-decoration: none;
  39.     display: inline;
  40.     }  
  41.    
  42. #menu1 li a:link, #menu1 li a:visited {
  43.     color: #FFF;
  44.     display: block;
  45.     padding: 15px 0 0 0px;
  46.     }  
  47.   </style>
  48. </head>
  49.  
  50.  
  51. <div id="menu1">
  52.         <ul>
  53.             <li><a href="Descripción" title="Descripción">Descripción</a></li>
  54.         </ul>
  55. </div>
  56. <div id="menu1">
  57.         <ul>
  58.             <li><a href="#2" title="Link 2">Requisitos</a></li>
  59.         </ul>
  60. </div>
  61. </body>
  62. </html>

Espero una pronta respuesta.