Solved

simple picture problem

Posted on 2002-05-17
3
180 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
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?
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

623 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