Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/11/2011, 13:50
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: margenes dentro de input text... se puede?

Asi


Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. <style type="text/css">
  7. /*<![CDATA[*/
  8. body{
  9. background-color: #6A7D9D;
  10. }
  11. input{
  12. padding-left: 10px;
  13. }
  14. table.sinsombra{
  15. border: solid 1px #FFF;
  16. margin-bottom: 15px;
  17. }
  18. /*]]>*/
  19. </head>
  20. <form action="#">
  21. <p><input type="text" name="s" value="Hola"/></p>
  22. </form>
  23. <table width="50%" class="sinsombra">
  24. <tr>
  25. <td>
  26. Contenido
  27. </td>
  28. </tr>
  29. <table width="50%" border="1">
  30. <tr>
  31. <td>
  32. Contenido
  33. </td>
  34. </tr>
  35. </body>
  36. </html>

Lo del input con padding-left
lo del borde de la tabla, definilo en el css, y no uses boeder="1" en los atributos.

Te buse dos tablas para que compares

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.