Forums

Being crushed by table spacing... Help? (2 posts)

  1. captainp
    Member
    Posted 9 months ago #

    Why I can't get rid of the spacing between my input elements in my optin box at the bottom of this page??

    Opt-in pain at bottom of page

    I just want the table input elements to have smaller spacing between them, but I've tried:

      collapsing the borders
      setting the margins for my td's to 0 with 0 padding

    But the spacing won't change!! The space between the inputs is always the same size as the input box.

    Is it something to do with some Thesis theme formatting?

    Thanks in advance for any help.

  2. Jason
    Member
    Posted 9 months ago #

    You could try putting both inputs in the same table cell so your table would be more like this:

    <table>
      <tr>
        <td>
           <input  />
           <input  />
        </td>
        <td>
           <input type="submit" />
        </td>
      </tr>
    </table>

    ... Or keeping the table structure the way it is you could put widths on the cells to get them to be closer to each other and make sure to align the last cell with your submit button over to the right.

    <table>
      <tr>
        <td width="20%">
           <input  />
        </td>
        <td width="20%">
           <input  />
        </td>
        <td width="60%" align="right">
           <input type="submit" />
        </td>
      </tr>
    </table>

    ... haha I haven't written tables like that in years, that was old school! ... Or you could just not use a table at all :)

Reply

You must log in to post.

About this Topic