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
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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.