Programación Web y Scripting > HTML
Evitar Celdas Grandes
RadicalEd:
Otra opción es saber que tipo de letra es igual a la preformateada.
FALSO NO ME SIRVE ASI, no me acordaba que la había puesto de esa forma por las tablas.
F_Tanori:
No te sirve esto?
--- Código: Text --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>Documento sin título</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head> <body><table border="1" cellspacing="2" cellpadding="0"><tr><td><div align="center" style='height:4px; font-size:12px'><b>COD INTERNO</b></td><td><div align="center" style='height:4px; font-size:12px'><b>REF COMPRADOR</b></div></td><td><div align="center" style='height:4px; font-size:12px'><b>DESCRIPCION</b></div></td><td><div align="center" style='height:4px; font-size:12px'><b>PRECIO.</b></div></td><td><div align="center" style='height:4px; font-size:12px'><b>CANT.</b></div></td><td><div align="center" style='height:4px; font-size:12px'><b>TOTAL</b></div></td></tr><tr><td><div align="center" style='height:4px; font-size:12px'><b>COD INTERNO</b></td><td><div align="center" style='height:4px; font-size:12px'><b>REF COMPRADOR</b></div></td><td><div align="center" style='height:4px; font-size:12px'><b>DESCRIPCION</b></div></td><td><div align="center" style='height:4px; font-size:12px'><b>PRECIO.</b></div></td><td><div align="center" style='height:4px; font-size:12px'><b>CANT.</b></div></td><td><div align="center" style='height:4px; font-size:12px'><b>TOTAL</b></div></td></tr><tr><td><div align="center" style='height:4px; font-size:12px'><b>COD INTERNO</b></td><td><div align="center" style='height:4px; font-size:12px'><b>REF COMPRADOR</b></div></td><td><div align="center" style='height:4px; font-size:12px'><b>DESCRIPCION</b></div></td><td><div align="center" style='height:4px; font-size:12px'><b>PRECIO.</b></div></td><td><div align="center" style='height:4px; font-size:12px'><b>CANT.</b></div></td><td><div align="center" style='height:4px; font-size:12px'><b>TOTAL</b></div></td></tr></table></body></html>
*** O usandolo desde una hoja de estilo
Saludos
Mollense:
--- Cita de: "Angel_K_ido" --- ...o modifica su estilo padding y margin !!!!!!
--- Fin de la cita ---
--- Código: Text ---<style type=text/css> pre{ margin: 0px; padding: 0px; } </style> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <title>Documento sin título</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <table border="1" cellspacing="2" cellpadding="0"> <tr> <td><div align="center"><pre><b>COD INTERNO</b></pre></div></td> <td><div align="center"><pre><b>REF COMPRADOR</b></pre></div></td> <td><div align="center"><pre><b>DESCRIPCION</b></pre></div></td> <td><div align="center"><pre><b>PRECIO.</b></pre></div></td> <td><div align="center"><pre><b>CANT.</b></pre></div></td> <td><div align="center"><pre><b>TOTAL</b></pre></div></td> </tr> <tr> <td><div align="center"><pre><b>COD INTERNO</b></pre></div></td> <td><div align="center"><pre><b>REF COMPRADOR</b></pre></div></td> <td><div align="center"><pre><b>DESCRIPCION</b></pre></div></td> <td><div align="center"><pre><b>PRECIO.</b></pre></div></td> <td><div align="center"><pre><b>CANT.</b></pre></div></td> <td><div align="center"><pre><b>TOTAL</b></pre></div></td> </tr> <tr> <td><div align="center"><pre><b>COD INTERNO</b></pre></div></td> <td><div align="center"><pre><b>REF COMPRADOR</b></pre></div></td> <td><div align="center"><pre><b>DESCRIPCION</b></pre></div></td> <td><div align="center"><pre><b>PRECIO.</b></pre></div></td> <td><div align="center"><pre><b>CANT.</b></pre></div></td> <td><div align="center"><pre><b>TOTAL</b></pre></div></td> </tr> </table> </body></html>
¿Por qué no usás las etiquetas CODE?
RadicalEd:
Yo lo 'bia puesto asi: :P
--- Código: Text ---pre{ border: 1px solid black; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px;}
Mollense:
Esto
--- Código: Text ---<style type=text/css> pre{ margin: 0px; padding: 0px; }</style> es igual a esto
--- Código: Text ---<style type=text/css> pre{ margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; }</style> Solamente que el primer método es interpretado mas rápido.-
Navegación
[*] Página Anterior
Ir a la versión completa