Solved

simple picture problem

Posted on 2002-05-17
3
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Suggested Solutions

Title # Comments Views Activity
How do I show a login page over the login page? 5 59
SVG and IE11 2 36
Html split(text) Part2 6 41
Jquery HTML() with ajax... replacing content 2 53
This article discusses four methods for overlaying images in a container on a web page
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

739 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