karimali831 Posted April 26, 2012 Share Posted April 26, 2012 Hi! Please take a look at on both Firefox and Chrome: http://painstreetnation.com/index.php?site=standings&ladderID=30&start=61 On Chrome the td height is fixed where as Firefox the td height stretches because of the bars on the right? How can I get the td height to be fixed like how Chrome displays it? This is the tr codes:- echo '<tr bgcolor="'.$bg_color_dd.'" onMouseOver="this.style.backgroundColor=\''.$hover_color.'\'" onMouseOut="this.style.backgroundColor=\''.$bg_color_dd.'\'"> <td style="height:27px; width:7%;">'.$position.''.$rank.'.</td> <td style="height:27px; width:30%;"><a href="'.getname3($teamID,$ds['ladID'],$ac=0,$var="ladder").'" name="hover_dt_'.$rank.'" style="text-decoration:none; cursor:help" onmouseover="showWMTT(\'hover_dt_'.$rank.'\')" onmouseout="hideWMTT()">'.(ladderis1on1($ds['ladID']) ? getusercountry3($teamID,$ac=0) : '<img src="images/flags/'.getclancountry($teamID,$img=0).'.gif">').' <strong>'.getname2($teamID,$ds['ladID'],$ac=0,$var="ladder").'</strong></a>'.$extras.$extras1.$extras2.$extras3.$extras4.$extras5.$extras6.$extras7.$extras8.'</td> <td style="height:27px;" align="center"><strong>'.$ds['tp'].'</td></strong> <td style="height:27px;" align="center"><strong>'.$last_points.'</td></strong> <td style="height:27px;" align="center"><strong><font color="'.$wincolor.'">'.$won.'</font></strong></td> <td style="height:27px;" align="center"><strong><font color="'.$drawcolor.'">'.$draw.'</font></strong></td> <td style="height:27px;" align="center"><strong><font color="'.$loosecolor.'">'.$lost.'</font></strong></td> <td style="height:27px;" align="center"><strong><font color="'.$wincolor.'">'.getstreak($teamID,$laddID).'</font></strong></td> <td style="height:27px;" align="center">'.$rating.'</td> <td style="height:27px;" align="center">'.$fight.'</td> </tr>'; $rank++; } if($are_participants) { echo '<tr> <td style="height:27px;" bgcolor="'.$pagebg.'" align="center" colspan="10">'.$button_prev.$button_next.'</td> </tr> </table>'; } Thanks all Link to comment https://forums.phpfreaks.com/topic/261642-cant-get-td-height-to-work-in-firefox/ Share on other sites More sharing options...
floridaflatlander Posted April 26, 2012 Share Posted April 26, 2012 I went here http://validator.w3.org/ and w3.org said you had 466 errors on that page. Of course I didn't look at them but most are probably stuff that's repeated. This is a good tool to use. Link to comment https://forums.phpfreaks.com/topic/261642-cant-get-td-height-to-work-in-firefox/#findComment-1340811 Share on other sites More sharing options...
karimali831 Posted April 27, 2012 Author Share Posted April 27, 2012 This is not my website just testing a file on it. Link to comment https://forums.phpfreaks.com/topic/261642-cant-get-td-height-to-work-in-firefox/#findComment-1341032 Share on other sites More sharing options...
salem80 Posted May 7, 2012 Share Posted May 7, 2012 Try Fix it in CSS file tr td {height:27px; } Link to comment https://forums.phpfreaks.com/topic/261642-cant-get-td-height-to-work-in-firefox/#findComment-1343840 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.