Solved

simple picture problem

Posted on 2002-05-17
3
168 Views
Last Modified: 2010-04-09
Hi,

Everyone must have come across this problem before ... but as I am in a rush, dont have the time to look it up using search engines.

When i link to a picture <img src=.... width=... height=...>

inside a table/cell of fixed size. There is "sometimes" a gap underneth the image.

This gap is ruining my table setup as it pushes the cells down for the pictures to line up.

I dont have this problem when i set the image as the background, but netscape doesnt show the background if the cell is empty.

1) So either a solution for to get rid of the gap
2) A solution for the netscape background/empty cell
3) A solution for both :)

Many thanks for everyone about to post

Dech
0
Comment
Question by:dech
  • 2
3 Comments
 
LVL 12

Expert Comment

by:lexxwern
ID: 7016172
<td>
<img .......... >
</td>


this should be your code...
change it too.


<td><img ............ ></td>
0
 
LVL 12

Accepted Solution

by:
lexxwern earned 50 total points
ID: 7016174
but netscape doesnt show the background if the cell is empty.

ad this to the empty cell,

<td>&nbsp</td>
0
 
LVL 19

Expert Comment

by:webwoman
ID: 7016191
It's possible another cell is too long, which will also cause a gap. Or you could have the cell heights set -- and wrong. Or you could have a spacer gif that's too big. Or any one of a dozen other things, or a combination of them.

Get rid of any cell heights, check the height on everything in that row, if you have rowspans check the combined height on them (if that's where this is), etc.

There are numerous reasons for gaps. You have to check ALL of them.  
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question