469,271 Members | 1,785 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Row spacing

Jon
Viewing the code below in IE displays spacing between the rows. I'm
specifying no borders or spacing, and there's no disjointing in
Mozilla. What else is there? I want to join the rows.
<table border="0" cellspacing='0' cellpadding='0' width="720" cols="2">

<tr>
<td colspan="2">
<a href="index.html">
<img src="images/banner.gif" border="0">
</a>
</td>
</tr>

<tr valign="top">
<td width="130">
<img name="navigate" src="images/navbar.jpg" border="0">
</td>
.....
Jon

Jul 24 '05 #1
12 20463
In article <11**********************@z14g2000cwz.googlegroups .com>,
no****@jcosby.com enlightened us with...
Viewing the code below in IE displays spacing between the rows. I'm
specifying no borders or spacing,


If you don't sepcify, the browser gets to apply defaults.
And defaults vary by browser.

Specify 0 for margin and padding (CSS) if you don't want any.

--
--
~kaeli~
Time flies like an arrow. Fruit flies like a banana.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 24 '05 #2
Jon wrote:
Viewing the code below in IE displays spacing between the rows.


You haven't provided a URL, so its very hard to say. My guess would be that
there is no space between the rows, but there is between the bottom of the
images and the bottom of the cell that the image is in.

That doesn't look like tabular data anyway, so
http://www.allmyfaqs.com/faq.pl?Tableless_layouts

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 24 '05 #3
Jon
>> Viewing the code below in IE displays spacing between the rows. I'm
specifying no borders or spacing,
If you don't sepcify, the browser gets to apply defaults.
And defaults vary by browser.

Specify 0 for margin and padding (CSS) if you don't want any.


Cellpadding is set to 0 in the table attributes. Tried both in the
stylesheet and still get the same spacing in IE. Don't have it in
Mozilla.

Jon

Jul 24 '05 #4
Jon
> ...My guess would be that there is no space between
the rows, but there is between the bottom of the
images and the bottom of the cell that the image is in.


Good thought, I tried setting the valign property to "top", but IE
still still shows the spacing.
Jon

Jul 24 '05 #5
Jon
Here is the code on the Web. If you folks could have a look at it and
make a suggestion, I'd appreciate it.

http://www.jcosby.com/temp/sample.htm

Jon

Jul 24 '05 #6
Jon wrote:
Here is the code on the Web. If you folks could have a look at it
and make a suggestion, I'd appreciate it.

http://www.jcosby.com/temp/sample.htm


"Please enable JavaScript! It is needed to view these pages."

Oh pshaw.

--
-bts
-This space intentionally left blank.
Jul 24 '05 #7
Jon
> "Please enable JavaScript! It is needed to view these pages."

Oh pshaw.


Are you suggestion this is the problem?

Jon

Jul 24 '05 #8
Jon wrote:

[Beauregard T. Shagnasty wrote:]
"Please enable JavaScript! It is needed to view these pages."

Oh pshaw.


Are you suggestion this is the problem?


Yes, of course.

--
-bts
-This space intentionally left blank.
Jul 24 '05 #9
Jon
>>> "Please enable JavaScript! It is needed to view these pages."
Oh pshaw.
Are you suggestion this is the problem?
Yes, of course.


The JavaScript or the noscript tag? Removing the header makes no
difference.
Jon

Jul 24 '05 #10
Jon wrote:

Please don't snip attributes. Thanks.
"Please enable JavaScript! It is needed to view these pages." Oh pshaw. Are you suggestion this is the problem?

Yes, of course.


The JavaScript or the noscript tag? Removing the header makes no
difference.


Requiring JavaScript to use a site is a bad idea. Use it for
enhancements but not for anything critical, especially navigation.
More and more people are turning it off for security reasons. And then
there is the number one reason: the Googlebot does not read it.

I was not addressing your row spacing problem, rather pointing out a
design problem.

--
-bts
-This space intentionally left blank.
Jul 24 '05 #11
In article <11*********************@g14g2000cwa.googlegroups. com>,
no****@jcosby.com enlightened us with...
Here is the code on the Web. If you folks could have a look at it and
make a suggestion, I'd appreciate it.

http://www.jcosby.com/temp/sample.htm


No doctype!
Quirks mode.
Bad idea.

Try using a doctype. I bet you then see the same issue in Firefox and IE. Or
they both look nice. One or the other. ;)

Interestingly enough, when viewing with Firefox, doing a view source and then
hitting back shows the same space problem as MSIE.
I think what you want is to use a doctype and to set the padding and margin
of your image(s) to 0.

--
--
~kaeli~
A bicycle can't stand on its own because it is two tired.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 24 '05 #12
Jon
kaeli wrote:
Here is the code on the Web. If you folks could
have a look at it and make a suggestion, I'd
appreciate it.

http://www.jcosby.com/temp/sample.htm
No doctype!
Quirks mode.
Bad idea. Try using a doctype. I bet you then see the same
issue in Firefox and IE. Or they both look nice.
One or the other. ;)
Interestingly enough, when viewing with Firefox,
doing a view source and then hitting back shows
the same space problem as MSIE. I think what you
want is to use a doctype and to set the padding
and margin of your image(s) to 0.


I don't know of any image padding or margin properties. Is there
something I'm not aware of?
Jon

Jul 24 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Rick DeBay | last post: by
5 posts views Thread by Andrew Poulos | last post: by
4 posts views Thread by fleemo17 | last post: by
12 posts views Thread by Sebastien B. | last post: by
3 posts views Thread by DigMar | last post: by
10 posts views Thread by phil-news-nospam | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.