Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Problem with html table

Problem with html table

Scheduled Pinned Locked Moved Web Development
htmlhelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aljaz111
    wrote on last edited by
    #1

    I have html table with input text cells. I tryed with cellspacing and cellpadding, padding and nothing works. I am trying to put cell together so there wouldn't be any space between them. Here is image how it looks now. What else can i try?

    Y enhzflepE 2 Replies Last reply
    0
    • A Aljaz111

      I have html table with input text cells. I tryed with cellspacing and cellpadding, padding and nothing works. I am trying to put cell together so there wouldn't be any space between them. Here is image how it looks now. What else can i try?

      Y Offline
      Y Offline
      Yusuf
      wrote on last edited by
      #2

      The image link looks ok to me. What space are you trying to get rid off. The white blank cells? or the vertical space between the row? If it is the former then look at colspan[^]

      Yusuf May I help you?

      1 Reply Last reply
      0
      • A Aljaz111

        I have html table with input text cells. I tryed with cellspacing and cellpadding, padding and nothing works. I am trying to put cell together so there wouldn't be any space between them. Here is image how it looks now. What else can i try?

        enhzflepE Offline
        enhzflepE Offline
        enhzflep
        wrote on last edited by
        #3

        Perhaps something like this?

        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Untitled Document</title>
        <style>
        td{
        text-align:center;
        color: red;
        font-weight: bold;
        font-style: italic;
        font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
        background-color: #EEE;
        border-top: 1px solid darkgray;
        border-left: 1px solid darkgray;
        border-bottom: 1px solid white;
        border-right: 1px solid white;
        width: 32px;
        }
        td input{
        width: 100%;
        background-color: #eee;
        border: none;
        }
        table{
        border: 2px solid black;
        }
        </style>
        </head>

        <body>
        <table border="0" cellspacing="0" cellpadding="0">
        <tr>
        <td><input type="text"/></td>
        <td>1</td>
        <td>3</td>
        </tr>
        <tr>
        <td>6</td>
        <td><input type="text"/></td>
        <td>4</td>
        </tr>
        <tr>
        <td>2</td>
        <td>9</td>
        <td>5</td>
        </tr>
        </table>
        </body>
        </html>

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups