Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table's extra space

Status
Not open for further replies.
im confused on what is wrong with the site. i played the both versions and it seems ok to me so you will need to be more specific with your question. is the problem on that first page? or in the game itself? i am using

Mozilla 1.0.1
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830

copied straight from help window. what we see depends mainly on what we're looking for.
--John Lubbock
 
Thanks for taking a look.

It's in game that I'm looking at with the game grid.

There's the 3 images on the top row, then before the 2nd row theres a gap (same for the 3rd row).

Is there anyway to get rid of the gap between the rows?
 
Ah, the problem here isn't your table, but your forms. A FORM in HTML automatically pads itself out.

To get around this, try the following:

<FORM ACTION=&quot;tictactoe.cgi&quot; METHOD=POST STYLE=&quot;margin-top: 0&quot;>

I believe this should work. If it doesn't, try a Google search on removing form padding.
 
kevin,
i now see what you are referring to. in mozilla (netscape) all looks ok. i was on my linux machine at home and your game looks great from there. now i am at school on a windows machine with ie and see the gaps. the only thing i can suggest is moving your <form> tags outside of the table cells, like so:
Code:
<form><td>....</td></form>
<form><td>....</td></form>
im not sure if this will work but is about my only suggestion. what we see depends mainly on what we're looking for.
--John Lubbock
 
Well taking the <form> tags outside of the table cells did work a lot, it made the gap smaller.

I tryed the <FORM ACTION=&quot;tictactoe.cgi&quot; METHOD=POST STYLE=&quot;margin-top: 0&quot;>
but couldn't get it to work

Also tryed a lad of stuff on a google search for &quot;removing form padding&quot; but couldn't get any of that to work.

I've took the cell padding out to make the cols go apart abit so it don't look too bad now it's just a little gap.

but if anyone else else knows how to bunch form tags together I'd still like to know, thanks
 
I apologise...it's been a while since I've done this...

It should be:

<form action=&quot;tictactoe.cgi&quot; method=post style=&quot;margin-top:0px; margin-bottom:0px&quot;>

That's the code that I've used on my website.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top