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

Change Table Row Height

Status
Not open for further replies.

JohnBates

MIS
Feb 27, 2000
1,995
US
Hi,

Having trouble adjusting the height of a table row.
Regardless of what I set height to, the height doesn't change -

Thanks, John


<tr height=&quot;5&quot;>
<td class = &quot;linethru&quot; align=&quot;center&quot; valign=&quot;CENTER&quot; bgcolor=&quot;blue&quot;><H4><A HREF=&quot;Certified.htm&quot;>Certified</a></H4></td>
<td class = &quot;black&quot; align=&quot;center&quot; valign=&quot;CENTER&quot; bgcolor=&quot;blue&quot;><H4>817.457.0056</H4></td>
<td class = &quot;black&quot; align=&quot;right&quot; valign=&quot;CENTER&quot; bgcolor=&quot;blue&quot;><H4><A HREF=&quot;mailto:emailaddr&quot;>emailaddr</a></H4></td>
</tr>
 
Looking at your code I can see you're forcing a height way to little to accomodate your content. The row height will always expand in order to show the content. To get your row height smaller, you might try removing the <h4> headings (they provide a bottom margin) - or apply margin 0 in the css - and make your text smaller.
 

I suspect your H4 tags are higher than 5 pixels... (assume from your code above that you want the row height at 5 pixels, with your text being truncated?)...

Try moving the height tag to the first TD instead...

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top