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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set ROW space to 'zero'?

Status
Not open for further replies.

HollyVally

Programmer
Jan 3, 2003
48
0
0
BD
Hi all,

I am trying to draw a table. But I can't seem to remove the space between the rows(<TR>'s) in that table: I could well do so for the cells(<TD>'s).

Pls help me!
 
Jere is the corrupted code: (it runs well in NN but not in IE)

Code:
<HTML>
<HEAD>
<TITLE>Welcome to My Test</TITLE>
<META http-equiv=&quot;Content-Type&quot; content=&quot;text/html&quot;>
<STYLE type=&quot;text/css&quot;>
<!--
.gamecell {
	font-size:10pt;
	font-family:verdana, arial, helvetica;
	font-weight:bold;
	color:#808080;
	border-style:solid;
	border-color:#336600;
	border-width:0px;
	background-color: #FEFACB;
	text-align: center;
	vertical-align: middle;
}

.number {
	font-size:10pt;
	font-family:verdana, arial, helvetica;
	font-weight:bold;
	color:#808080;
	background-color: #FEFACB;
	text-align: center;
	vertical-align: middle;
	height: 15pt;
	width: 15pt;
	border: thin solid #336600;
}

.cross {
	border: thin solid #336600;
	background-color: #336600;
	height: 15pt;
	width: 15pt;
}

-->
</STYLE>
</HEAD>

<BODY leftmargin=&quot;0&quot; rightmargin=&quot;0&quot; topmargin=&quot;0&quot; bottommargin=&quot;0&quot;>
<TABLE width=&quot;100%&quot; height=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
  <TR><!-- ContentBar.html -->
	<TD height=&quot;100%&quot; valign=&quot;top&quot;>
		<TABLE width=&quot;100%&quot; height=&quot;100%&quot; border=&quot;0&quot;>
		<TR>
		  <TD valign=&quot;top&quot; align=&quot;center&quot;>

			<FORM action=&quot;CN.php&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot; name=&quot;formCN&quot;>
			
			<TABLE class=&quot;number&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
				<TR class=&quot;number&quot; rowpadding=&quot;0&quot; rowspacing=&quot;0&quot;>
					<TD colspan=&quot;10&quot; class=&quot;number&quot; style=&quot;width:100%&quot;>To choose a number<BR>Click on it
					</TD>
				</TR>
				<TR class=&quot;number&quot; border=&quot;0&quot;>	
					<TD><INPUT type=&quot;text&quot; class=&quot;number&quot; name=&quot;chosenNumber&quot; value=&quot;0&quot; readonly=true></TD>
					<TD><INPUT type=&quot;text&quot; class=&quot;number&quot; name=&quot;chosenNumber&quot; value=&quot;1&quot; readonly=true></TD>
					<TD><INPUT type=&quot;text&quot; class=&quot;number&quot; name=&quot;chosenNumber&quot; value=&quot;2&quot; readonly=true></TD>
					<TD><INPUT type=&quot;text&quot; class=&quot;number&quot; name=&quot;chosenNumber&quot; value=&quot;3&quot; readonly=true></TD>
					<TD><INPUT type=&quot;text&quot; class=&quot;number&quot; name=&quot;chosenNumber&quot; value=&quot;4&quot; readonly=true></TD>
					<TD><INPUT type=&quot;text&quot; class=&quot;number&quot; name=&quot;chosenNumber&quot; value=&quot;5&quot; readonly=true></TD>
					<TD><INPUT type=&quot;text&quot; class=&quot;number&quot; name=&quot;chosenNumber&quot; value=&quot;6&quot; readonly=true></TD>
					<TD><INPUT type=&quot;text&quot; class=&quot;number&quot; name=&quot;chosenNumber&quot; value=&quot;7&quot; readonly=true></TD>
					<TD><INPUT type=&quot;text&quot; class=&quot;number&quot; name=&quot;chosenNumber&quot; value=&quot;8&quot; readonly=true></TD>
					<TD><INPUT type=&quot;text&quot; class=&quot;number&quot; name=&quot;chosenNumber&quot; value=&quot;9&quot; readonly=true></TD>
				</TR>
				
				<TR>
					<TD colspan=&quot;10&quot; class=&quot;number&quot;>
						<BR>
						<INPUT type=&quot;text&quot; name=&quot;onTheCell&quot; class=&quot;gamecell&quot; value=&quot;Click on a cell!&quot; readonly=true>
						<INPUT type=&quot;text&quot; name=&quot;chosenCell&quot; class=&quot;gamecell&quot; value=&quot;&quot; readonly=true>
						<BR>
					</TD>
				</TR>
			</TABLE>
			
			<TABLE border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;number&quot;>
			<TR>
					<TD><INPUT name=&quot;cell1&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
			
					<TD><INPUT name=&quot;cell2&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell3&quot; type=&quot;text&quot; class=&quot;cross&quot; value=&quot;&nbsp;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell4&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell5&quot; type=&quot;text&quot; class=&quot;cross&quot; value=&quot;&nbsp;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell6&quot; type=&quot;text&quot; class=&quot;cross&quot; value=&quot;&nbsp;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell7&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell8&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell9&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
			</TR>
			
			<TR>
					<TD><INPUT name=&quot;cell10&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell11&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell12&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell13&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell14&quot; type=&quot;text&quot; class=&quot;cross&quot; value=&quot;&nbsp;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell15&quot; type=&quot;text&quot; class=&quot;cross&quot; value=&quot;&nbsp;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell16&quot; type=&quot;text&quot; class=&quot;cross&quot; value=&quot;&nbsp;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell17&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
			
					<TD><INPUT name=&quot;cell18&quot; type=&quot;text&quot; class=&quot;cross&quot; value=&quot;&nbsp;&quot; readonly=true></TD>
			</TR>
			<TR>
					<TD><INPUT name=&quot;cell19&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell20&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell21&quot; type=&quot;text&quot; class=&quot;cross&quot; value=&quot;&nbsp;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell22&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell23&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell24&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell25&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
			
					<TD><INPUT name=&quot;cell26&quot; type=&quot;text&quot; class=&quot;cross&quot; value=&quot;&nbsp;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell27&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
			</TR>
			<TR>
					<TD><INPUT name=&quot;cell28&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell29&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell30&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell31&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell32&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell33&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
			
					<TD><INPUT name=&quot;cell34&quot; type=&quot;text&quot; class=&quot;cross&quot; value=&quot;&nbsp;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell35&quot; type=&quot;text&quot; class=&quot;number&quot; value=&quot;&quot; readonly=true></TD>
					<TD><INPUT name=&quot;cell36&quot; type=&quot;text&quot; class=&quot;cross&quot; value=&quot;&nbsp;&quot; readonly=true></TD>
			</TR>
			
			</TABLE>
			<INPUT name=&quot;Submit&quot; value=&quot;Enter my game&quot; type=&quot;submit&quot; disabled=&quot;true&quot;>
			<INPUT name=&quot;Reset&quot; value=&quot;Clear the game&quot; type=&quot;reset&quot;>
			<INPUT type=&quot;button&quot; value=&quot;New Game&quot; onClick=&quot;window.location.reload()&quot;>
			</FORM>
			&nbsp;
		  </TD>
	
		</TR>
	</TABLE>
	&nbsp;
  </TD>
</TR>
</TABLE>
	
  


</BODY>
</HTML>
 
I played with your CSS declarations a little and it looks like it has somethig to do with the border width values (thin solid).

I use Netscape and, as you say, it looks fine there. I have an old version of IE5 (sorry, I'm a Netscape fan) and I didn't have time to find the exact problem. I'd go back to your CSS declarations (.number) and work from there. You might want to create a seperate class just for your tables.

Sorry I couldn't be more help. Hang in there, drink a lot of cheap tequila, don't sleep for a couple of days. You'll soon find the answer!!!

There's always a better way...
 
HI tviman,

Thanx for all. I am a NS fan too, that's why I have this problem! I started developing on NS and I completely overlooked the IE view at the begining! One of my friend chked on IE and reported the error. Since than I am trying to resolve it, but I simply don't know where the mistake is :cool:.

please do give it a go from your perspective and show me some light!

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top