Timinator2000 Posted November 30, 2007 Share Posted November 30, 2007 Hello everyone. I am trying to make a table where the row heights are a snug as possible.. unfortunately, I can't seem to get anything to work.. Aside from using CSS.. is there any way to force a row height to snug up to text in the td cell? I even tried putting a line in the style in the header section but still no go.. It's frustrating to have a list in a table with such space between each row.. Ex. Edmonton Calgary Vancouver in my table viewed in IE, using font 12, there is so much unecessary space between each row.. Some html: <tr> <td width="3" height="0" valign="middle"><img src="/images/arr1.jpg" height="5" /> </td> <td height="0"> </td> <td width="190" height="0" valign="bottom"><div align="left"><span class="style13">CGI Bin </span></div></td> <td width="80" height="0" valign="bottom"><div align="left"><span class="style13">YES</span></div></td> <td width="80" height="0" valign="bottom"><div align="left"><span class="style13">YES</span></div></td> <td width="80" height="0" valign="bottom"><div align="left"><span class="style13">YES</span></div></td> <td width="150" height="0"> </td> </tr> Any ideas? Thanks.T Quote Link to comment https://forums.phpfreaks.com/topic/79576-table-row-height/ Share on other sites More sharing options...
ToonMariner Posted December 1, 2007 Share Posted December 1, 2007 border-collapse: collapse put that in your css properties for th table. Quote Link to comment https://forums.phpfreaks.com/topic/79576-table-row-height/#findComment-403287 Share on other sites More sharing options...
MishieMoo Posted December 1, 2007 Share Posted December 1, 2007 Also make sure that you have cellspacing="0" cellpadding="0" in your table tag. Like this: <table cellspacing="0" cellpadding="0"> Quote Link to comment https://forums.phpfreaks.com/topic/79576-table-row-height/#findComment-403721 Share on other sites More sharing options...
kts Posted December 6, 2007 Share Posted December 6, 2007 The height will always be overruled by the cell spacing cell padding and borders.. make sure like they said those are as tight as possible and you should see a difference. Quote Link to comment https://forums.phpfreaks.com/topic/79576-table-row-height/#findComment-407567 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.