473,668 Members | 2,406 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="Laatsterek ening.gif" width="99"
height="15"></a></TD>
<TD><A href="something "><IMG src="Voorlaatst erekening.gif" width="123"
height="15"></a></TD>
<TD><A href="something "><IMG src="Lopendekos ten.gif" width="94"
height="15"></a></TD>
<TD><A href="something "><IMG src="VoordeelNu mmers.gif" width="111"
height="15"></a></TD>
<TD><A href="something "><IMG src="Gespreksan alyse.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 3915
On Tue, 16 Sep 2003 11:35:52 +0200, "Wenslauw"
<h.*********@do notspam.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="Laatsterek ening.gif" width="99"
height="15"> </a></TD>
<TD><A href="something "><IMG src="Voorlaatst erekening.gif" width="123"
height="15"> </a></TD>
<TD><A href="something "><IMG src="Lopendekos ten.gif" width="94"
height="15"> </a></TD>
<TD><A href="something "><IMG src="VoordeelNu mmers.gif" width="111"
height="15"> </a></TD>
<TD><A href="something "><IMG src="Gespreksan alyse.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="Laatsterek ening.gif" width="99"
height="15"></a>
<A href="something "><IMG src="Voorlaatst erekening.gif" width="123"
height="15"></a>
<A href="something "><IMG src="Lopendekos ten.gif" width="94"
height="15"></a>
<A href="something "><IMG src="VoordeelNu mmers.gif" width="111"
height="15"></a>
<A href="something "><IMG src="Gespreksan alyse.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="Laatsterek ening.gif" width="99"
height="15"></a></TD>
<TD><A href="something "><IMG src="Voorlaatst erekening.gif" width="123"
height="15"></a></TD>
<TD><A href="something "><IMG src="Lopendekos ten.gif" width="94"
height="15"></a></TD>
<TD><A href="something "><IMG src="VoordeelNu mmers.gif" width="111"
height="15"></a></TD>
<TD><A href="something "><IMG src="Gespreksan alyse.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="Laatsterek ening.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
29233
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 problem: http://home.comcast.net/~delerious1/index12.html I do know that I can solve the problem in IE by changing padding-right to margin-right, but then the links cannot be clicked when the mouse is over that margin area. So I would...
4
29381
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, but it seems to me that I am doing everything right, which is obviously not the case. It concerns the tables in the alphabetic part of the page. I have there a table-class "block" defined. It works fine in giving the tables their...
4
16874
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 space of about 5px between table rows. Any Idea?
3
2090
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 the border (top, left, bottom, right) to zero for both the inner table and outer table. Also padding to 0 and spacing to 0. But, for some reason, there is still some space between the bottom of the inner table and the bottom of the containing...
2
8051
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
11041
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 to do that in CSS without having to code in extra dummy columns in HTML to create gutters? -- ----------------------------------------------------------------------------- | Phil Howard KA9WGN | http://linuxhomepage.com/ ...
2
1486
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 spacing to do what I want. In the following html page, I would like for the table with Sublink1, 2, and 3 to be directly against Link 3. Right now there is a gap of about 5 pixels. I've simplified the page to only show my problem. I would...
1
5191
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 a div table and after I save it I noticed that the slideshow does not show up and the embed code I added is altered. Can anyone help me figure this out? The embed code that I'm talking about is three quarters down the code page under {PHOTOS},...
5
4193
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, for which number of rows/columns i will not know, and I have to pretty up the table, including a verical scroll bar. This has to work in IE6, IE7, and FireFox 3.5. The CSS I currently have will give me a scrollable table, but only if I hard code...
0
8462
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8382
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8893
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8658
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6209
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4206
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4384
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2792
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2028
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.