473,508 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

table shows padding with padding, spacing and boder at 0

A weird thing is going on. I don't understand it. I made a table:

<TABLE border=0 cellpadding=0 cellspacing=0>
<TR>
<TD><A href="something"><IMG src="Welkom.gif" width="51"
height="15"></a></TD>
<TD><A href="something"><IMG src="Laatsterekening.gif" width="99"
height="15"></a></TD>
<TD><A href="something"><IMG src="Voorlaatsterekening.gif" width="123"
height="15"></a></TD>
<TD><A href="something"><IMG src="Lopendekosten.gif" width="94"
height="15"></a></TD>
<TD><A href="something"><IMG src="VoordeelNummers.gif" width="111"
height="15"></a></TD>
<TD><A href="something"><IMG src="Gespreksanalyse.gif" width="102"
height="15"></a></TD>
<TD><A href="something"><IMG src="Help.gif" width="28" height="15"></a></TD>
</TR>
</TABLE>

I replaced the long links with the string 'something' and img src is a lot
longer too. What happens is that the images are still padded. Anybody got
any idea why? Thanks

Marco
Jul 20 '05 #1
4 3908
On Tue, 16 Sep 2003 11:35:52 +0200, "Wenslauw"
<h.*********@donotspam.kpn.com> wrote:
A weird thing is going on. I don't understand it. I made a table:

<TABLE border=0 cellpadding=0 cellspacing=0>
<TR>
<TD><A href="something"><IMG src="Welkom.gif" width="51"
height="15"></a></TD>
<TD><A href="something"><IMG src="Laatsterekening.gif" width="99"
height="15"></a></TD>
<TD><A href="something"><IMG src="Voorlaatsterekening.gif" width="123"
height="15"></a></TD>
<TD><A href="something"><IMG src="Lopendekosten.gif" width="94"
height="15"></a></TD>
<TD><A href="something"><IMG src="VoordeelNummers.gif" width="111"
height="15"></a></TD>
<TD><A href="something"><IMG src="Gespreksanalyse.gif" width="102"
height="15"></a></TD>
<TD><A href="something"><IMG src="Help.gif" width="28" height="15"></a></TD>
</TR>
</TABLE>

I replaced the long links with the string 'something' and img src is a lot
longer too. What happens is that the images are still padded. Anybody got
any idea why? Thanks


I'm not sure why you have a problem, but it seems that you've made
things unnecessarily complicated. You could just do:

<DIV>
<A href="something"><IMG src="Welkom.gif" width="51" height="15"></a>
<A href="something"><IMG src="Laatsterekening.gif" width="99"
height="15"></a>
<A href="something"><IMG src="Voorlaatsterekening.gif" width="123"
height="15"></a>
<A href="something"><IMG src="Lopendekosten.gif" width="94"
height="15"></a>
<A href="something"><IMG src="VoordeelNummers.gif" width="111"
height="15"></a>
<A href="something"><IMG src="Gespreksanalyse.gif" width="102"
height="15"></a>
<A href="something"><IMG src="Help.gif" width="28" height="15"></a>
</DIV>

and your problem may well go away. Oh, and do add ALT attributes to your
images to avoid killing the navigation for someone without images.

Musing further: am I right in thinking that your GIFs just contain a
piece of text? (Your width attributes are suggestive.) In that case you
can simplify it still further to:

<A href="something">Welkom</a>
etc

and decorate your links with CSS as you wish.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #2
Wenslauw wrote:

<TABLE border=0 cellpadding=0 cellspacing=0>
<TR>
<TD><A href="something"><IMG src="Welkom.gif" width="51"
height="15"></a></TD>
<TD><A href="something"><IMG src="Laatsterekening.gif" width="99"
height="15"></a></TD>
<TD><A href="something"><IMG src="Voorlaatsterekening.gif" width="123"
height="15"></a></TD>
<TD><A href="something"><IMG src="Lopendekosten.gif" width="94"
height="15"></a></TD>
<TD><A href="something"><IMG src="VoordeelNummers.gif" width="111"
height="15"></a></TD>
<TD><A href="something"><IMG src="Gespreksanalyse.gif" width="102"
height="15"></a></TD>
<TD><A href="something"><IMG src="Help.gif" width="28" height="15"></a></TD>
</TR>
</TABLE>

I replaced the long links with the string 'something' and img src is a lot
longer too. What happens is that the images are still padded.
url would be nice; so too would browser(s) tested
Anybody got
any idea why?


Is the space on the bottom? If so, check here:
< http://devedge.netscape.com/viewsource/2002/img-table/ >
--
Brian
follow the directions in my address to email me

Jul 20 '05 #3
Stephen Poley wrote:
I'm not sure why you have a problem, but it seems that you've made
things unnecessarily complicated. You could just do:
I do now. it's the link that makes the line around the image. I set it to
white, so i didn't see it was the link that did it...

<DIV>
<A href="something"><IMG src="Welkom.gif" width="51" height="15"></a>
<A href="something"><IMG src="Laatsterekening.gif" width="99"
height="15"></a>
I had set the padding to zero cos I couldn't get them close enough, but in
the end it's not the idea to have them connected.
and your problem may well go away. Oh, and do add ALT attributes to
your images to avoid killing the navigation for someone without
images.
Good idea, I guess I'll do this for all the images for the next release.
<A href="something">Welkom</a>
and decorate your links with CSS as you wish.


I will look into this. It could be very helpful. Thanks.

Wenslauw
Jul 20 '05 #4
Brian wrote:
Wenslauw wrote:
I replaced the long links with the string 'something' and img src is
a lot longer too. What happens is that the images are still padded.


url would be nice; so too would browser(s) tested


Unfortunately I am behind several firewalls..
Anybody got
any idea why?


Is the space on the bottom? If so, check here:
< http://devedge.netscape.com/viewsource/2002/img-table/ >


Thanks for the link. I will read the article closely.

Wenslauw
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
29220
by: delerious | last post by:
I'm trying to add some simple padding to an IMG by using a padding-right style, but it doesn't work in IE. Works fine in Mozilla and Opera, though. Here's a link to a page which displays this IE...
4
29376
by: Wim Roffal | last post by:
On my webpage (http://www.classiccat.net/index.htm) I tried to transfer the cellpadding/spacing attributes to my stylesheet. However, somehow it doesn't work. I tried to look it up on the internet,...
4
16860
by: Bernd Goldschmidt | last post by:
Hi. I've got a somewhat wired problems with an extra space between table rows in Mozilla and Opera (IE works fine). With the code below, cells within a row align seamlessly, but there is a...
3
2082
by: Selden McCabe | last post by:
Sometimes I want to put a table inside a cell of another table (say, to create 3 equal divisions, etc.). When I want the inner table's edges to correspond exactly with the edges of the cell, I set...
2
8043
by: tradmusic.com | last post by:
Hi, I'm having problems specifying 0 for cell spacing and cell padding using CSS...I've got: #Table { width: 730px; padding: 0; }
10
11020
by: phil-news-nospam | last post by:
I have a table with 3 columns in 1 row. I want to increase the spacing _between_ the columns (gutter) _without_ increasing the spacing between those columns and the table itself. Is there a way...
2
1481
by: kemton | last post by:
I may be double posting here, but I think this is the more accurate group to post this question. I have a table in which I'm using css to set up the options of the page, and I cannot get the...
1
5185
by: MissMarie | last post by:
I've been playing around with DIV tables in myspace to better learn how to rewrite my own code for my business site without having to pay someone to design it. I've tried embedding a slideshow into...
5
4183
by: Stepheno | last post by:
Hi, I am a recently converted Iseries (AS/400) RPG programmer trying to learn HTML/CSS/JavsScript all at the same time (not fun). My problem deals mostly with CSS. I will be reveiving a table,...
0
7231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7133
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7336
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5643
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3214
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
435
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.