473,378 Members | 1,527 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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 27202
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.*******@gmail.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
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...
9
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
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...
8
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...
1
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...
3
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...
8
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
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...
4
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...
6
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.