Ver Mensaje Individual
  #5 (permalink)  
Antiguo 19/12/2015, 07:34
alantoledo007
 
Fecha de Ingreso: diciembre-2015
Mensajes: 6
Antigüedad: 8 años, 4 meses
Puntos: 1
Respuesta: Imagen y texto

no te recomiendo que hagas una web con tablas. te comviene HTML5.
algo asi:
Código HTML:
Ver original
  1. <!DOCTYPE html>
  2. <html lang="es">
  3.     <title>mi pagina web</title>
  4. </head>
  5. <style type="text/css">
  6. *{
  7.     padding: 0;
  8.     margin: 0;
  9. }
  10. header{
  11.     background-image: url('imagenes/portada.pnj');
  12.     background-size: 100%;/* aca estoy diciendo que el fondo ocupe todo el tamaño del div*/
  13.     height: 150px;
  14. }
  15. ul{
  16.     overflow: hidden;
  17. }
  18. ul li{
  19.     float: left;/*las listas flotan a la izquierda*/
  20.     list-style: none;/*las listas se imprimen sin ningun items*/
  21.     box-sizing:border-box;
  22.     background-color: rgba(0,0,0, .5);
  23.     transition: all .4s;
  24. }
  25. ul li:hover {
  26.     background-color: rgba(0,0,0, 1)
  27. }
  28. ul li a{
  29.     display: block;/*le digo a la etiqueta "a" que se comporte como un div o h */
  30.     padding: 10px;
  31.     color: #fff;
  32.     text-decoration: none;
  33. }  
  34.     <nav>
  35.         <ul>
  36.             <li><a href="#">Menu</a></li>
  37.             <li><a href="#">Nosotros</a></li>
  38.         </ul>
  39.     </nav>
  40.     <h1>Bienvenido a mi pagina web</h1>
  41. </body>
  42. </html>