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

Decreasing the height of a table.

Status
Not open for further replies.

iao

Programmer
Feb 23, 2001
111
0
0
US
So, I know I'm doing something wrong, but any ideas why I can't decrease the height of the table? I would like to have each row "tightened" up a bit, but can't seem to make the rows go closer together, no matter what I try. I know I must be an idiot for not knowing this, but I can't seem to get it to work.

Any ideas?



<table height=&quot;38&quot; width=&quot;289&quot;>
<tr>
<td width=&quot;15&quot; height=&quot;18&quot; valign=&quot;top&quot;>
<p class=&quot;nav&quot;>
<img src=&quot;../../images/in-arrow.gif&quot; border=&quot;0&quot; alt=&quot;in-arrow&quot; width=&quot;13&quot; height=&quot;11&quot;>
</p>
<p class=&quot;nav&quot;>
<img src=&quot;../../images/in-arrow.gif&quot; border=&quot;0&quot; alt=&quot;in-arrow&quot; width=&quot;13&quot; height=&quot;11&quot;>
</p>
<p class=&quot;nav&quot;><img src=&quot;../../images/in-arrow.gif&quot; border=&quot;0&quot; alt=&quot;in-arrow&quot; width=&quot;13&quot; height=&quot;11&quot;>
</p>
</td>
<td width=&quot;264&quot; height=&quot;18&quot; valign=&quot;top&quot;>
<p class=&quot;nav&quot;><a href=&quot;default.htm&quot; class=&quot;nav&quot;>Options</a>
</p>
<p class=&quot;nav&quot;><a href=&quot;default.htm&quot; class=&quot;nav&quot;>Features</a>
</p>
<p class=&quot;nav&quot;><a href=&quot;default.htm&quot; class=&quot;nav&quot;>Requirements</a>
</p>
</td>
</tr>
</table>
 
Yes, that doesn't work.
 
you can set the margins in the table to 0. this will get everything tightened up.

_______________________________________________
[sub]{ str = &quot;sleep is good for you. sleep gives you the energy you need to function&quot;;
ptr = /sleep/gi;Nstr = str.replace(ptr,&quot;coffee&quot;);alert(Nstr); }[/sub]
_______________________________________________
for the best results to your questions: FAQ333-2924
has you're questio
 
I think it's all the <p class=nav> code....

this produces a tight knit table:

<table width=&quot;289&quot; height=&quot;36&quot; border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td width=&quot;15&quot; height=&quot;18&quot; valign=&quot;top&quot;>
<img src=&quot;TEST.jpg&quot; alt=&quot;in-arrow&quot; width=&quot;13&quot; height=&quot;11&quot; border=&quot;0&quot;>
<img src=&quot;TEST.jpg&quot; alt=&quot;in-arrow&quot; width=&quot;13&quot; height=&quot;11&quot; border=&quot;0&quot;>
<img src=&quot;TEST.jpg&quot; alt=&quot;in-arrow&quot; width=&quot;13&quot; height=&quot;11&quot; border=&quot;0&quot;>
</td>
<td width=&quot;264&quot; height=&quot;18&quot; valign=&quot;top&quot;>
<a href=&quot;default.htm&quot; class=&quot;nav&quot;>Options</a><br>
<a href=&quot;default.htm&quot; class=&quot;nav&quot;>Features</a><br>
<a href=&quot;default.htm&quot; class=&quot;nav&quot;>Requirements</a>

</td>
</tr>
</table>
 
good call doyle9732
actually the cariage alone will make the space larger to.
<p class=&quot;nav&quot;><img src=&quot;../../images/in-arrow.gif&quot; border=&quot;0&quot; alt=&quot;in-arrow&quot; width=&quot;13&quot; height=&quot;11&quot;></p> _______________________________________________
[sub]{ str = &quot;sleep is good for you. sleep gives you the energy you need to function&quot;;
ptr = /sleep/gi;Nstr = str.replace(ptr,&quot;coffee&quot;);alert(Nstr); }[/sub]
_______________________________________________
for the best results to your questions: FAQ333-2924
has you're questio
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top