Picture not displaying full width of cell (help)

L

lee

Hi , I am trying to insert a small picture (jpg) into a table cell, both
with the same width and it looks fine in design mode but when I preview the
web page, the image is not as wide as the cell and hence looks like terrible.

Can anyone give me some advice on what I need to do to rectify this?
Many thanks
Lee-Anne
 
J

Jens Peter Karlsen[FP MVP]

Use CSS to set margin and padding to zero.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
S

Stefan B Rusynko

Check the cell in Code view for extra spaces. etc.
- you can also set the cell to 2 px smaller than the image, and check that your table cellpadding / cellspacing are set to 0




| Hi , I am trying to insert a small picture (jpg) into a table cell, both
| with the same width and it looks fine in design mode but when I preview the
| web page, the image is not as wide as the cell and hence looks like terrible.
|
| Can anyone give me some advice on what I need to do to rectify this?
| Many thanks
| Lee-Anne
|
|
 
M

Murray

I would need to see the table cell's context within the code to say what is
happening. You can fiddle with margins and padding until you are blue in
the face, but if the table's contents (in other cells) are forcing that cell
wider/taller, it's all wasted. A table cell will be as big as the table
wants it to be. Therefore, unless you have carefully built your table and
its contents to restrict the dimensions of that cell, you will NEVER be able
to make the image fit exactly in a reliable way.

I'd say the best bet is to make the cell's background color something that
is consistent with the image, and let the image float in the middle of the
cell, no matter how large the cell is.
 
Top