Solved

simple picture problem

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

943 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now