Jump to content

space in table, how to remove it


salvador2001

Recommended Posts

hello,

I have created a table for my script and its divided in two parts.
The left part shows a picture and the right part shows the variable of the script.
Now i have the problem that underneath the picture a space is showing up wich i cant remove.

The table should be tight around the picture.

Can anybody tell me how to remove this space ?

    echo "
<div align='left'>


<table width='207' height='75' valign='top' border='1' cellpadding='0' cellspacing='0' bordercolor='#465461'>
<tbody>
<tr>
    <td
    colspan='1' width='50' style='text-align:left;font-weight:700;'>
    <img src='sc-1.gif' />
    </td>
            <td style='text-align:center;font-weight:700;border-color:#2D3740;'>".$server_status."</td>
</tr>
</tbody>
</table>
       
</div>";
Link to comment
https://forums.phpfreaks.com/topic/26248-space-in-table-how-to-remove-it/
Share on other sites


It is showing space just because of your setting in table declaration.


<table width='207' height='75' valign='top' border='1' cellpadding='0' cellspacing='0' bordercolor='#465461'>

remove the height from the above line


<table width='207' valign='top' border='1' cellpadding='0' cellspacing='0' bordercolor='#465461'>

then try.if you want to specify the height..do it in <TR> tags.

Regards,
Joshi.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.