jasonc Posted June 25, 2008 Share Posted June 25, 2008 i have tried the following but this did not work <tr style="border-bottom: 1px;"> my full code... what should i add to make the bottom border of the last <td> to 1px in height. <table width="970"> <tr> <td width="120"><div align="center">header1</div></td> <td width="167">header2</td> <td width="556">header3</td> <td width="107"><div align="center">header4</div></td> </tr> <? for ($i = 0; $i < $numberofrows; $i++) { $h1 = mysql_result($data, $i, "h1"); $h2 = mysql_result($data, $i, "h2"); $h3 = mysql_result($data, $i, "h3"); $h4 = mysql_result($data, $i, "h4"); ?> <tr> <td align="left" valign="top"><div align="center"><?=$h1;?></div></td> <td align="left" valign="top"><?=$h2);?></td> <td align="left" valign="top"><?=$h3;?></td> <td valign="top"><div align="center"><?=$h4;?></div></td> </tr> <? } ?> </table> Quote Link to comment Share on other sites More sharing options...
dbrimlow Posted June 25, 2008 Share Posted June 25, 2008 You need to designate the size, type and color. <tr style="border-bottom: 1px solid #000000"> Quote Link to comment Share on other sites More sharing options...
jasonc Posted June 25, 2008 Author Share Posted June 25, 2008 yep i tried that too, both did not work, IE or FireFox ok i just tried something else and got it working in FireFox border-collapse:collapse; in the table style but it does not work in IE is there a fix to get it to work in IE ? Quote Link to comment Share on other sites More sharing options...
haku Posted June 26, 2008 Share Posted June 26, 2008 Got a link to your page? Quote Link to comment Share on other sites More sharing options...
dannyb785 Posted June 26, 2008 Share Posted June 26, 2008 I'm pretty sure you can't modify a table row. You have to modify the individual td's. The code provided(style="border:1px solid black") will work as desired in the td. Quote Link to comment Share on other sites More sharing options...
jasonc Posted June 26, 2008 Author Share Posted June 26, 2008 please try the code i gave in my first post as this is what code i used to test hopefully there is a way to have this show in both IE and FireFox It does show ok in FireFox tho, but really would be good to have showing in IE too thanks for your help Quote Link to comment Share on other sites More sharing options...
dannyb785 Posted June 26, 2008 Share Posted June 26, 2008 ^ did you even read my post? Put the style properties in the td. Is that not answering your question? Quote Link to comment Share on other sites More sharing options...
jasonc Posted June 26, 2008 Author Share Posted June 26, 2008 i did place it in the td itself... it works ! only in FireFox tho not in Internet Explorer here is my code... <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <table width="100%" style="border-collapse:collapse"> <tr style="border-bottom: 1px solid #000000"> <td> </td> <td> </td> </tr> <tr style="border-bottom: 1px solid #000000"> <td> </td> <td> </td> </tr> <tr style="border-bottom: 1px solid #000000"> <td> </td> <td> </td> </tr> <tr style="border-bottom: 1px solid #000000"> <td> </td> <td> </td> </tr> <tr style="border-bottom: 1px solid #000000"> <td> </td> <td> </td> </tr> </table> </body> </html> Quote Link to comment Share on other sites More sharing options...
dannyb785 Posted June 26, 2008 Share Posted June 26, 2008 ^ omg... dude, I said put the style code in the TD!!!! Please read posts more carefully Quote Link to comment Share on other sites More sharing options...
dbrimlow Posted June 26, 2008 Share Posted June 26, 2008 He's right, you cannot modify a TR. You can only modify Table and TR Quote Link to comment 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.