Jump to content

Recommended Posts

Hello everyone I am having a problem in which i have a table with image and text in on a website and to fit all the content on the page i need the table to be smaller but for some reason it will not and leaves a white space about and below the image in the table. Is there any way of getting rid of this?

here is the live page www.deskfun.co.nr/1123 hooton park website/4-1.php

and here is the code im using :

<td height="50"><div align="center">
              <table width="87%" border="1" align="center" cellpadding="0">
                <tr>
                  <td width="29%"><p align="center">Badge</p></td>
                  <td width="24%"><p align="center">Rank</p></td>
                  <td width="23%"><p align="center">Abbreviation </p></td>
                  <td width="24%"><p align="center">Notes</p></td>
                </tr>
                <tr>
                  <td height="30"><p align="center"><img width="78" height="54" src="4-3_clip_image001.gif" /></p></td>
                  <td height="30"><p align="center">Pilot Officer</p></td>
                  <td height="30"><p align="center">Plt Off</p></td>
                  <td rowspan="3"><p align="center">Junior Officer    Ranks</p></td>
                </tr>
                <tr>
                  <td height="30"><p align="center"><img src="4-3_clip_image002.gif" width="78" height="54" border="0" usemap="#Map" /></p></td>
                  <td height="30"><p align="center">Flying Officer</p></td>
                  <td height="30"><p align="center">Fg Off</p></td>
                </tr>
                <tr>
                  <td height="30"><p align="center"><img width="78" height="54" src="4-3_clip_image003.gif" /></p></td>
                  <td height="30"><p align="center">Flight Lieutenant </p></td>
                  <td height="30"><p align="center">Flt Lt </p></td>
                </tr>
                <tr>
                  <td height="30"><p align="center"><img width="78" height="54" src="4-3_clip_image004.gif" /></p></td>
                  <td height="30"><p align="center">Squadron Leader</p></td>
                  <td height="30"><p align="center">Sqn Ldr</p></td>
                  <td rowspan="2"><p align="center">Senior Officer    Ranks</p></td>
                </tr>
                <tr>
                  <td height="30"><p align="center"><img width="78" height="54" src="4-3_clip_image005.gif" /></p></td>
                  <td height="30"><p align="center">Wing Commander</p></td>
                  <td height="30"><p align="center">Wg Cdr</p></td>
                </tr>
              </table>
            </div>

Anytime you use

<p align="center"><img width="78" height="54" src="http://deskfun.mine.nu/1123 hooton park website/4-3_clip_image003.gif" /></p>

 

Your going to have a space above and below.

 

To avoid that, but still keep it centered, use

<td align="center"><img width="78" height="54" src="http://deskfun.mine.nu/1123 hooton park website/4-3_clip_image003.gif" /></td>

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.