473,569 Members | 2,652 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to remove the space between these two tables?

wk
Hi,

I have a seemingly simple html code which has two tables one under
another, and both have an image of same size...but the table row also
has some text, which seems to be creating a small gap between the two
images on display. Can anybody tell me how to remove the thin gap
between the two images?

<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" valign="middle" ><a><img srcItem.gif" width="31"
height="16" border="0" a><a href="xyz">abc</a></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" valign="middle" ><a><img srcItem.gif" width="31"
height="16" border="0" a><a href="xyz">efg</a></td>
</tr>
</table>

Jul 21 '05 #1
7 27265
Els
wk wrote:
Hi,

I have a seemingly simple html code which has two tables one under
another, and both have an image of same size...but the table row also
has some text, which seems to be creating a small gap between the two
images on display. Can anybody tell me how to remove the thin gap
between the two images?

<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" valign="middle" ><a><img srcItem.gif" width="31"
height="16" border="0" a><a href="xyz">abc</a></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" valign="middle" ><a><img srcItem.gif" width="31"
height="16" border="0" a><a href="xyz">efg</a></td>
</tr>
</table>


How about using correct markup?
What is <img srcItem.gif" width="31" height="16" border="0" a>
supposed to mean?
I bet this code doesn't show anything online.
Please provide a URL so we can distinguish between real problems and
bad copy paste jobs.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 21 '05 #2
Els wrote:
wk wrote:

Hi,

I have a seemingly simple html code which has two tables one under
another, and both have an image of same size...but the table row also
has some text, which seems to be creating a small gap between the two
images on display. Can anybody tell me how to remove the thin gap
between the two images?

<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" valign="middle" ><a><img srcItem.gif" width="31"
height="16" border="0" a><a href="xyz">abc</a></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" valign="middle" ><a><img srcItem.gif" width="31"
height="16" border="0" a><a href="xyz">efg</a></td>
</tr>
</table>

How about using correct markup?
What is <img srcItem.gif" width="31" height="16" border="0" a>
supposed to mean?
I bet this code doesn't show anything online.
Please provide a URL so we can distinguish between real problems and
bad copy paste jobs.


we indeed seldomly get treated with such html_gibberish here. i even
doubt that this is a copy/paste .. must be some kind of pre_1st attempt
at html or else there is simply no hope.
Jul 21 '05 #3
Els
Martin! wrote:
Els wrote:
wk wrote:

Hi,

I have a seemingly simple html code which has two tables one under
another, and both have an image of same size...but the table row also
has some text, which seems to be creating a small gap between the two
images on display. Can anybody tell me how to remove the thin gap
between the two images?

<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" valign="middle" ><a><img srcItem.gif" width="31"
height="16 " border="0" a><a href="xyz">abc</a></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" valign="middle" ><a><img srcItem.gif" width="31"
height="16 " border="0" a><a href="xyz">efg</a></td>
</tr>
</table>

How about using correct markup?
What is <img srcItem.gif" width="31" height="16" border="0" a>
supposed to mean?
I bet this code doesn't show anything online.
Please provide a URL so we can distinguish between real problems and
bad copy paste jobs.


we indeed seldomly get treated with such html_gibberish here. i even
doubt that this is a copy/paste .. must be some kind of pre_1st attempt
at html or else there is simply no hope.


Nah, it must be copy paste, otherwise s/he wouldn't be able to see any
images, let alone a space between them :-)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 21 '05 #4
wk
What i pasted here is a simplification of the looong code i have in my
application. A small typo which happened was that <img srcItem.gif"
should have been <img src="Item.gif"

any ideas now?

Jul 21 '05 #5
Els
wk wrote:
What i pasted here is a simplification of the looong code i have in my
application. A small typo which happened was that <img srcItem.gif"
should have been <img src="Item.gif"

any ideas now?


Yes, sure: How about qouting those parts of a message to which you are
replying, so we all know what you're talking about?
And as I happen to have a very good memory, I'll tell you from that
memory that your code is still a mess, even when I correct that
'little typo' you just mentioned. What is an 'a' doing at the end of
an <img> element? Why is there a single <a> in front of that image
element?
Your last chance: a URL, or no help from me. (can't speak for the
others of course, but I know there are more people who think like
that, so it's your choice)

Problems on pages can be caused by lots of things, I'm not gonna waste
my time on something that isn't solvable because for instance you
didn't use a doctype and I'd be trying to code against quirksmode or
something that silly.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 21 '05 #6
Els wrote:
wk wrote:

What i pasted here is a simplification of the looong code i have in my
application . A small typo which happened was that <img srcItem.gif"
should have been <img src="Item.gif"

any ideas now?


a URL .....


if you would have spend more than a fraction of a quantum-second (wonder
what you did during those last 15 hours) you would have noticed that the
text you placed after the images also need space. and since anchors and
images are inline elements the text increases the space between your
images. see for instance the 'g'.

add 'a { backgroud-color: red;}' and you cannot miss it.
Jul 21 '05 #7
"Martin!" <m.*******@gmai l.comcomcommer> wrote in message
news:d3******** **@news.hispeed .ch...

add 'a { backgroud-color: red;}' and you cannot miss it.


....unless you spell "background " wrong...

Those copy-and-paste errors can get you. :-o

--
John
Jul 21 '05 #8

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

Similar topics

8
2818
by: JT | last post by:
i have written some asp that reads a fixed length text file, line by line, inserting each line into my database. my problem is that the text file format seems to have extra space at the end of the file so my code thinks there is actually one more line when there is not. is there a way to remove these spaces before i loop through the file? ...
9
41441
by: Daniel | last post by:
Hi I'd like to discuss the following problem: How to remove the space between two images (img)? <img alt="First" src="first.gif"> <img alt="Second" src="second.gif"> I tried:
3
411
by: Buz | last post by:
I am having a problem with extra, unwanted space showing up on my web form tables. I've tried hand coding and can get the htm file to display fine. But as soon as I bring the form into Visual Studio, convert it to an aspx web form, and insert my user controls, I start getting extra blank space between my rows, even when I give an explicit...
8
4182
by: Joseph | last post by:
I have a textBox that people writes stories in it. They can use for format. I have Aspell installed on the server, so people can make correction to their text. Sometimes, they forget to add a space after a period. So Aspell reads the last word of a sentence and the first word of the next sentence as a single world, which gives an error,...
1
12091
by: tabert | last post by:
I want to use JavaScript when a button is clicked to show and hide a SPAN or DIV. This works in both IE and Netscape, but what I'd like to happen is for there to be no white space where the hidden div is. I start with two visible divs and in between them are two more hidden ones...in Firefox this works fine--the two visible ones are right...
3
1084
by: Chris | last post by:
Hi, I am trying to load 3 xml files into one dataset like dsXML.ReadXml(Server.MapPath("file1.xml") dsXML.ReadXml(Server.MapPath("file2.xml")) dsXML.ReadXml(Server.MapPath("file3.xml")) I am then trying to display each files in separate datagrid datagrid1.datasource = dsXml.tables(0)
8
3008
by: voroojak | last post by:
i want to remove space in my table. it is a text box and i want to remove the space after the character. the field is integer thanks aot
5
4148
by: Steve | last post by:
I'm getting string returned from my Database with a space in front of it, it sometimes it looks like this 8 9 10 1 and so one, how can I remove the white space in front of the numbers? Its actually causing an error on one of my pages and I'm not sure how to remove it in the beginning of the string.
4
2593
by: ashish1779 | last post by:
hi I am new in PHP, i have face one problem when I crawl any site and i have to save the whole HTML content in database, on that time all the HTML tags are changes into the extra space in content then it is saved into DB.i want to remove that extra space from content when we have to use them . and i am not understand what how remove that space...
6
4187
by: Mladen Mavrovic | last post by:
Hi everyone, I have to fix this asap, and I tried all I know, but there was no joy. Please, take a look at http://stampamajica.in.rs/ There are 3 html pages there. Can anybody tell me how to fix the code to remove space between images in ie8? Your help is very much appreciated!
0
7700
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...
0
7614
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...
0
8125
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7676
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7974
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...
0
6284
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5513
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...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2114
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

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.