Solved

simple picture problem

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

743 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

9 Experts available now in Live!

Get 1:1 Help Now