Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/08/2010, 16:10
Avatar de willyfc
willyfc
 
Fecha de Ingreso: octubre-2008
Ubicación: Santa Cruz - Bolivia
Mensajes: 662
Antigüedad: 15 años, 7 meses
Puntos: 40
Respuesta: dar longitud a una linea

Podrías hacerlo con el tag <hr />, con css le puedes dar ancho, alto y jugar con los margenes y rellenos.

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. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <style type="text/css">
  5.     #cont{width: 800px;margin: 0 auto;}
  6.     p{margin-left:20px; }
  7.     hr{width: 780px;height: 2px;background: #CCC; margin:10px auto;}
  8. </head>
  9. <div id="cont">
  10.     <p>Aqui va texto</p>
  11.     <hr />
  12.     <p>Aqui va mas texto</p>
  13. </div>
  14. </body>
  15. </html>
__________________
WFC
codigo82