Connecting Tech Pros Worldwide Forums | Help | Site Map

Row spacing

Jon
Guest
 
Posts: n/a
#1: Jul 24 '05
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


kaeli
Guest
 
Posts: n/a
#2: Jul 24 '05

re: Row spacing


In article <1116012149.364921.216630@z14g2000cwz.googlegroups .com>,
nospam@jcosby.com enlightened us with...[color=blue]
> Viewing the code below in IE displays spacing between the rows. I'm
> specifying no borders or spacing,[/color]

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

David Dorward
Guest
 
Posts: n/a
#3: Jul 24 '05

re: Row spacing


Jon wrote:
[color=blue]
> Viewing the code below in IE displays spacing between the rows.[/color]

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
Jon
Guest
 
Posts: n/a
#4: Jul 24 '05

re: Row spacing


>> Viewing the code below in IE displays spacing between the rows. I'm[color=blue][color=green]
>> specifying no borders or spacing,[/color][/color]
[color=blue]
> 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.[/color]

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

Jon
Guest
 
Posts: n/a
#5: Jul 24 '05

re: Row spacing


> ...My guess would be that there is no space between[color=blue]
> the rows, but there is between the bottom of the
> images and the bottom of the cell that the image is in.[/color]

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


Jon

Jon
Guest
 
Posts: n/a
#6: Jul 24 '05

re: Row spacing


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

Beauregard T. Shagnasty
Guest
 
Posts: n/a
#7: Jul 24 '05

re: Row spacing


Jon wrote:[color=blue]
> 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[/color]

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

Oh pshaw.

--
-bts
-This space intentionally left blank.
Jon
Guest
 
Posts: n/a
#8: Jul 24 '05

re: Row spacing


> "Please enable JavaScript! It is needed to view these pages."[color=blue]
>
> Oh pshaw.[/color]

Are you suggestion this is the problem?

Jon

Beauregard T. Shagnasty
Guest
 
Posts: n/a
#9: Jul 24 '05

re: Row spacing


Jon wrote:

[Beauregard T. Shagnasty wrote:][color=blue][color=green]
>> "Please enable JavaScript! It is needed to view these pages."
>>
>> Oh pshaw.[/color]
>
> Are you suggestion this is the problem?[/color]

Yes, of course.

--
-bts
-This space intentionally left blank.
Jon
Guest
 
Posts: n/a
#10: Jul 24 '05

re: Row spacing


>>> "Please enable JavaScript! It is needed to view these pages."
[color=blue][color=green][color=darkred]
>>> Oh pshaw.[/color][/color][/color]
[color=blue][color=green]
>> Are you suggestion this is the problem?[/color][/color]
[color=blue]
> Yes, of course.[/color]

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


Jon

Beauregard T. Shagnasty
Guest
 
Posts: n/a
#11: Jul 24 '05

re: Row spacing


Jon wrote:

Please don't snip attributes. Thanks.
[color=blue][color=green][color=darkred]
>>>> "Please enable JavaScript! It is needed to view these pages."[/color][/color]
>[color=green][color=darkred]
>>>> Oh pshaw.[/color][/color]
>[color=green][color=darkred]
>>> Are you suggestion this is the problem?[/color][/color]
>[color=green]
>> Yes, of course.[/color]
>
> The JavaScript or the noscript tag? Removing the header makes no
> difference.[/color]

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.
kaeli
Guest
 
Posts: n/a
#12: Jul 24 '05

re: Row spacing


In article <1116178015.899642.77990@g14g2000cwa.googlegroups. com>,
nospam@jcosby.com enlightened us with...[color=blue]
> 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
>[/color]

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

Jon
Guest
 
Posts: n/a
#13: Jul 24 '05

re: Row spacing


kaeli wrote:
[color=blue][color=green]
>> 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[/color][/color]
[color=blue]
>No doctype!
>Quirks mode.
>Bad idea.[/color]
[color=blue]
> 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.[/color]

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


Jon

Closed Thread