Google Answers Logo
View Question
 
Q: HTML tables ( Answered 4 out of 5 stars,   2 Comments )
Question  
Subject: HTML tables
Category: Computers > Internet
Asked by: theconquerer-ga
List Price: $15.00
Posted: 29 Nov 2002 22:47 PST
Expires: 29 Dec 2002 22:47 PST
Question ID: 116666
How can I get 4 gifs to "touch" each other? Have no white space
between them. For example:
http://pantheon.yale.edu/~ccw9/mom/google.html how can I get those 4
gifs to be touching on all browsers (on Opera they are touching but on
ie they dont now). Creating one big pic with the 4 is not option.
Answer  
Subject: Re: HTML tables
Answered By: tisme-ga on 30 Nov 2002 15:32 PST
Rated:4 out of 5 stars
 
Hello theconquerer,

Is this the code you were looking for?

<html>
<head>
<title>Untitled</title>
</head>
<body>
<TABLE WIDTH="0" BORDER="0" CELLSPACING="0" CELLPADDING="0"
HEIGHT="36">
<img name="1508" src="http://pantheon.yale.edu/~ccw9/mom/rbasic.gif" 
height="36" border="0"><img name="1508"
src="http://pantheon.yale.edu/~ccw9/mom/rbasic.gif" height="36"
border="0"><br><img name="1508"
src="http://pantheon.yale.edu/~ccw9/mom/ybasic.gif" height="36" 
border="0"><img name="1508"
src="http://pantheon.yale.edu/~ccw9/mom/ybasic.gif" height= "36"
border="0">
</table>
</body>
</html>

Its important not to put a space between them or they will seperate.
the <br> moves them to the next line.

If this is not what you were looking for please let me know and I will
do my best to further assist you.

tisme-ga

Clarification of Answer by tisme-ga on 30 Nov 2002 15:34 PST
Quick followup: I tested this in Netscape 7 and Internet Explorer 6
and it seemed to be working.
theconquerer-ga rated this answer:4 out of 5 stars
Thanks for the answer tisme. It works well! I ended up implementing
darthcow's idea, as it is more suitable for my page, thanks a lot
darthcow!!

Comments  
Subject: Re: HTML tables
From: darthcow-ga on 30 Nov 2002 17:46 PST
 
Somebody doesn't know HTML - while the code in the answer may appear
correctly in modern browsers, tables require rows and cells to be
defined in them with <tr> and <td>. To get cells with images in them
to appear adjacent to each other in IE, you simply need to remove all
spacing between the <td> and </td> tags and the image tag. Also, the
original code needs a fix with the table tag as well (at least for
practical purposes) - either the height attribute of the table should
be changed to 72 (twice 36 for two rows), or the separate row
definitions should be eliminated.
Subject: Re: HTML tables
From: funkywizard-ga on 30 Nov 2002 18:46 PST
 
Though its nice to think of ways things should theoretically done, in
practice, what matters at the end of the day is the end result. And
the end result does not require what darthcow has suggested, though it
is worth trying if what else is tried fails.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy