Picture not displaying full width of cell (help)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Use CSS to set margin and padding to zero.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
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
|
|
 
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.
 

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

Back
Top