/    Sign up×
Community /Pin to ProfileBookmark

unwanted blank space around image in table

Using a table-cell and image with exactly the same dimensions, I still get some blank space at the bottom of the picture in IE6, and at top and bottom in NN7.
I use border=”0″; vspace makes no difference.
How do I get rid of this blank space?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@meowJan 12.2003 — Don't think JavaScript is the solution. ?

(We are in the JavaScript forum)

Most often that's caused by whitespace in your code. Try writing all markup for your cells on one single line without spaces between the tags. Like so:

<td><img><td>

Hope that works. ?
Copy linkTweet thisAlerts:
@blufiveJan 12.2003 — [URL=http://devedge.netscape.com/viewsource/2002/img-table/]This article[/URL] should help with Netscape 7.
Copy linkTweet thisAlerts:
@fluffycowJan 14.2003 — ive gotten that before, its caused by some rowspans in ie5.5

Thats all I know, I just had to take the offending rowspans outta mine becuase I couldn't fix it

Ive also had it cuased by not defining the height and width of the image in the <img> tags.

and had it cuased by the good old whitespace....
×

Success!

Help @markvl spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...