Gaps around graphics inside a cell

C

Chris McLean

I have placed a graphic inside a cell with borders. I have set the cell size
to exactly the same size as the graphic, but whatever I do there is a small
gap between the bottom edge of the graphic and the cell border (the graphic
is top and left aligned). Cell padding and spacing are set to 0. The total
height of all cells in the table equals the height of the table. I have
played around with leaving height as automatic as compared to specifying it,
but nothing gets rid of that little gap at the bottom of the graphic where
the background shows between the graphic and the cell border. I am using FP
2000. Can anyone help with this?
Chris
 
J

Jim Buyens

Try any/all of these:

o In HTML view, make sure there's nothing between the
<td> and </td> except your <img> tag.
o Get rid of all cell heights in the row that contains
the picture.
o Make sure no other cells in the same column are
slightly taller than your picture (i.e. that no
adjascent cell is forcing the bottom border downward).
o I almost hate to mention this, but open your picture
in a picture editor, zoom in, and check the bottom
edge for white pixels.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*------------------------------------------------------*
|\----------------------------------------------------/|
|| Microsoft Office FrontPage 2003 Inside Out ||
|| Microsoft FrontPage Version 2002 Inside Out ||
|| Web Database Development Step by Step .NET Edition ||
|| Troubleshooting Microsoft FrontPage 2002 ||
|| Faster Smarter Beginning Programming ||
|| (All from Microsoft Press) ||
|/----------------------------------------------------\|
*------------------------------------------------------*
 
P

Peter Taurins

<td><img src="whatever"></td>

and

<td><img src="whatever">
</td>

will give you different results.
It's possibly the </td> on the newline causing your problem (I know it does
to me).
Edit the HTMl and put the </td> on the same line as the <td> and it will
probably solve the problem.

Peetr.
 
S

Stefan B Rusynko

Also set your cell and image alignments

--




| Try any/all of these:
|
| o In HTML view, make sure there's nothing between the
| <td> and </td> except your <img> tag.
| o Get rid of all cell heights in the row that contains
| the picture.
| o Make sure no other cells in the same column are
| slightly taller than your picture (i.e. that no
| adjascent cell is forcing the bottom border downward).
| o I almost hate to mention this, but open your picture
| in a picture editor, zoom in, and check the bottom
| edge for white pixels.
|
| Jim Buyens
| Microsoft FrontPage MVP
| http://www.interlacken.com
| Author of:
| *------------------------------------------------------*
| |\----------------------------------------------------/|
| || Microsoft Office FrontPage 2003 Inside Out ||
| || Microsoft FrontPage Version 2002 Inside Out ||
| || Web Database Development Step by Step .NET Edition ||
| || Troubleshooting Microsoft FrontPage 2002 ||
| || Faster Smarter Beginning Programming ||
| || (All from Microsoft Press) ||
| |/----------------------------------------------------\|
| *------------------------------------------------------*
|
| >-----Original Message-----
| >I have placed a graphic inside a cell with borders. I
| >have set the cell size to exactly the same size as the
| >graphic, but whatever I do there is a small gap between
| >the bottom edge of the graphic and the cell border (the
| >graphic is top and left aligned). Cell padding and
| >spacing are set to 0. The total height of all cells in
| >the table equals the height of the table. I have played
| >around with leaving height as automatic as compared to
| >specifying it, but nothing gets rid of that little gap
| >at the bottom of the graphic where the background shows
| >between the graphic and the cell border. I am using FP
| >2000. Can anyone help with this?
| >Chris
| >
| >
| >.
| >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top