SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: Aligning Tables

  1. #1
    SitePoint Member
    Join Date
    May 2002
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Aligning Tables

    This is a small problem but one that I have not been able to solve. Here is my site http://empinc.has.it just under the poll where the 2 pictures are, I need that to connect with the poll but I presume because of the shoutbox it wont allow it any help would be greatly apprecaited.

  2. #2
    Non-Member mmi's Avatar
    Join Date
    Jun 2001
    Location
    Rhode Island
    Posts
    587
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wink if content is king, what's "empty"?

    hey Empty - just a guess, but you might try closing yer TD's "on the same line," e.g.,
    ... current results</a></p></td>

  3. #3
    SitePoint Zealot Klav's Avatar
    Join Date
    Mar 2002
    Location
    Huddersfield, UK
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Move the </form> tag for the poll to inbetween the </td> and <td> tags. For example:
    PHP Code:
      </tr>
    </
    table>
    </
    td>
    </
    form> << HERE
    <td width="160" colspan="1" rowspan="2"
    If that doesn't work; try moving the </form> tag to somewhere on your page where you don't mind there being a small gap.

    I hope this helps!

  4. #4
    SitePoint Member
    Join Date
    May 2002
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    w00t, thanks it worked but it sucks that it creates a space.

  5. #5
    SitePoint Member
    Join Date
    May 2000
    Location
    Copenhagen, Denmark
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    By moving the form tag into a table (or another invalid position) you manage to remove the space it creates. In turn you have created another problem for yourself, your HTML markup is no longer valid.

    As browsers evolve they will, hopefully, not tolerate invalid markup.

    Instead of using invalid markup to overcome browser implementations, try using the following css:

    form {margin:0px;}

    That will accomplish the same thing and still leave you with valid markup.

    Best regards.
    Morgan Roderick
    http://roderick.dk

  6. #6
    SitePoint Member
    Join Date
    May 2002
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh ok, Thanks Morg


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •